for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Arcanedev\LaravelAuth\Bases\Migration;
use Illuminate\Database\Schema\Blueprint;
/**
* Class CreatePasswordResetsTable
*
* @author ARCANEDEV <[email protected]>
*/
class CreateAuthPasswordResetsTable extends Migration
{
/* -----------------------------------------------------------------
| Constructor
| -----------------------------------------------------------------
* CreateAuthPasswordResetsTable constructor.
public function __construct()
parent::__construct();
$this->setTable('password_resets');
}
| Main Methods
* Run the migrations.
public function up()
$this->createSchema(function (Blueprint $table) {
$table->string('email');
$table->string('token');
$table->timestamp('created_at')->nullable();
$table->index(['email', 'token']);
});