public function testRunningMigrations() { static::bootKernel(); // create user table Schema::create('users', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->string('email'); $table->string('password'); $table->timestamps(); }); User::create(['name' => 'John Doe', 'email' => '*****@*****.**', 'password' => 'pa$$word']); }
/** * Reverse the migrations. * * @return void */ public function down() { Schema::table('SomeTable', function (Blueprint $table) { // }); }
/** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('SomeTable'); }
/** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('users'); }
/** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('SomeTable'); }