schema->hasTable('persistences')) { $this->schema->create('persistences', function (Blueprint $table) { $table->increments('id'); $table->integer('user_id')->unsigned(); $table->string('token', 40); $table->string('persistent_token', 40); $table->timestamp('expires_at')->nullable(); $table->timestamps(); $table->engine = 'InnoDB'; $table->collation = 'utf8_unicode_ci'; $table->charset = 'utf8'; //$table->foreign('user_id')->references('id')->on('users'); $table->index('user_id'); $table->index('token'); $table->index('persistent_token'); }); } } /** * {@inheritDoc} */ public function down() { $this->schema->drop('persistences'); } }