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