diff --git a/database/migrations/2018_04_17_222542_add_blog_table.php b/database/migrations/2018_04_17_222542_add_blog_table.php index 1f56df9..67dab4c 100644 --- a/database/migrations/2018_04_17_222542_add_blog_table.php +++ b/database/migrations/2018_04_17_222542_add_blog_table.php @@ -15,7 +15,7 @@ class AddBlogTable extends Migration { Schema::create('blog', function(Blueprint $table) { $table->increments('id'); - $table->integer('user_id')->unsigned(); + $table->bigInteger('user_id')->unsigned(); $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); $table->string('title')->nullable(); $table->text('body')->nullable();