Created
May 18, 2018 17:48
-
-
Save thannaske/c847844cd7d6cb362d65596c0c79ebba to your computer and use it in GitHub Desktop.
Migration for the Laravel e-mail address confirmation functionality
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function up() | |
{ | |
Schema::create('users', function (Blueprint $table) { | |
// Default Laravel stuff | |
$table->increments('id'); | |
$table->string('name'); | |
$table->string('email')->unique(); | |
$table->string('password'); | |
// E-mail address confirmation fields | |
$table->string('confirmation_token', 32)->nullable()->default(null); | |
$table->dateTime('confirmed_at')->nullable()->default(null); | |
// Further Laravel stuff | |
$table->rememberToken(); | |
$table->timestamps(); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment