3 use Illuminate\Database\Schema\Blueprint;
4 use Illuminate\Database\Migrations\Migration;
6 class CreateBooksTable extends Migration
15 Schema::create('books', function (Blueprint $table) {
16 $table->engine = 'MyISAM';
17 $table->increments('id');
18 $table->string('name');
19 $table->string('slug')->indexed();
20 $table->text('description');
21 $table->nullableTimestamps();
26 * Reverse the migrations.
30 public function down()
32 Schema::drop('books');