diff options
author | Camil Staps | 2016-09-25 23:56:46 +0200 |
---|---|---|
committer | Camil Staps | 2016-09-26 01:02:05 +0200 |
commit | 33ad0c14d168d36a4e7ad42dc6aa6a37a7335849 (patch) | |
tree | 0543b7d92f7f0b7706f4313ba10b18483f747798 /database/migrations/2016_09_25_210947_add_remember_token.php | |
parent | Added unique visitors to statistics (diff) |
Change from lumen 5.2 to laravel 5.3 (Resolves #1)
Diffstat (limited to 'database/migrations/2016_09_25_210947_add_remember_token.php')
-rw-r--r-- | database/migrations/2016_09_25_210947_add_remember_token.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/database/migrations/2016_09_25_210947_add_remember_token.php b/database/migrations/2016_09_25_210947_add_remember_token.php new file mode 100644 index 0000000..83f72bd --- /dev/null +++ b/database/migrations/2016_09_25_210947_add_remember_token.php @@ -0,0 +1,32 @@ +<?php + +use Illuminate\Support\Facades\Schema; +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Database\Migrations\Migration; + +class AddRememberToken extends Migration +{ + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::table('users', function (Blueprint $table) { + $table->rememberToken(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn('remember_token'); + }); + } +} |