3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
6 class CreateChaptersTable extends Migration
15 Schema::create('chapters', function (Blueprint $table) {
16 $table->increments('id');
17 $table->integer('book_id');
18 $table->string('slug')->indexed();
20 $table->text('description');
21 $table->integer('priority');
22 $table->nullableTimestamps();
27 * Reverse the migrations.
31 public function down()
33 Schema::drop('chapters');