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]>
* @see \Arcanedev\LaravelAuth\Models\PasswordReset
*/
class CreateAuthPasswordResetsTable extends Migration
{
/* -----------------------------------------------------------------
| Constructor
| -----------------------------------------------------------------
* Make a migration instance.
public function __construct()
parent::__construct();
$this->setConnection(null)->setPrefix(null);
$this->setTable(config('auth.passwords.users.table', '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']);
});