id(); $table->string('name'); $table->string('slug'); $table->string('language', 10)->default('ru'); $table->text('content'); $table->boolean('topped')->default(false); $table->string('image'); $table->enum('type', ['news', 'article', 'sales', 'media']); $table->text('keywords')->nullable(); $table->text('descriptions')->nullable(); $table->unsignedInteger('views')->default(0); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('posts'); } }