aboutsummaryrefslogtreecommitdiff
path: root/database/migrations/2016_09_25_210947_add_remember_token.php
diff options
context:
space:
mode:
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.php32
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');
+ });
+ }
+}