id()->autoIncrement(); $table->string('name',255)->nullable(); $table->string('slug',255)->unique()->nullable(); $table->string('thumbnail',255)->nullable(); $table->longText('content')->nullable(); $table->tinyInteger('status')->default(1)->comment('0: Pending; 1: Published; 2: Draft'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('posts'); } };