Skip to content

Commit 70fcbbd

Browse files
authored
laravel 5.8 support
1 parent affb313 commit 70fcbbd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

publish/migrations/2016_01_01_193651_create_roles_permissions_tables.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ public function up()
4545

4646
Schema::create('role_user', function (Blueprint $table) {
4747
$table->integer('role_id')->unsigned();
48-
$table->integer('user_id')->unsigned();
48+
if (\App::VERSION() >= '5.8') {
49+
$table->bigInteger('user_id')->unsigned();
50+
} else {
51+
$table->integer('user_id')->unsigned();
52+
}
4953

5054
$table->foreign('role_id')
5155
->references('id')

0 commit comments

Comments
 (0)