schema->create('post', function (Blueprint $table) { $table->increments('id'); $table->text('content')->nullable(false); $table->integer('user_id'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { \kernel\App::$db->schema->dropIfExists('post'); } };