public function up() { Schema::up('token', function (Type $type) { $type->engine = 'MyISAM'; $type->id()->autoincrement()->integers('user_id')->string('token')->save(); }); }
public function up() { Schema::up('users', function (Type $type) { $type->engine = 'MyISAM'; /* default value $type->charset = 'utf8'; $type->collate = 'utf8_unicode_ci'; */ $type->id()->autoincrement()->string('name', 60)->unique('email', 60)->string('password')->timeStamp('created_at')->timestamp('update_at', 'NULL')->save(); }); }