/** * Run the migrations. * * @return void */ public function up() { Schema::create('SomeTable', function (Blueprint $table) { $table->increments('id'); $table->timestamps(); }); }
/** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->string('email'); $table->string('password'); }); }
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']); }