Skip to content

Commit

Permalink
laravel 5.8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
sohelamin authored Mar 11, 2019
1 parent affb313 commit 70fcbbd
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ public function up()

Schema::create('role_user', function (Blueprint $table) {
$table->integer('role_id')->unsigned();
$table->integer('user_id')->unsigned();
if (\App::VERSION() >= '5.8') {
$table->bigInteger('user_id')->unsigned();
} else {
$table->integer('user_id')->unsigned();
}

$table->foreign('role_id')
->references('id')
Expand Down

0 comments on commit 70fcbbd

Please sign in to comment.