В чем проблема не могу понять class CreatePostsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('posts', function (Blueprint $table) { $table->increments('id'); $table->string('title'); $table->string('image')->nullable(); $table->text('content'); $table->unsignedBigInteger('likes')->nullable(); $table->boolean('is_published')->default(1); $table->timestamps(); }); }
/** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('posts'); } }