File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed
Davzie/LaravelBootstrap/Accounts Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -76,4 +76,19 @@ public function setPasswordAttribute($value)
76
76
$ this ->attributes ['password ' ] = Hash::make ( $ value );
77
77
}
78
78
79
+ public function getRememberToken ()
80
+ {
81
+ return $ this ->remember_token ;
82
+ }
83
+
84
+ public function setRememberToken ($ value )
85
+ {
86
+ $ this ->remember_token = $ value ;
87
+ }
88
+
89
+ public function getRememberTokenName ()
90
+ {
91
+ return 'remember_token ' ;
92
+ }
93
+
79
94
}
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ use Illuminate \Database \Migrations \Migration ;
4
+ use Illuminate \Database \Schema \Blueprint ;
5
+
6
+ class AddRememberMeToUsersTable extends Migration {
7
+
8
+ /**
9
+ * Run the migrations.
10
+ *
11
+ * @return void
12
+ */
13
+ public function up ()
14
+ {
15
+ Schema::table ('users ' , function (Blueprint $ table ) {
16
+ $ table ->string ('remember_me ' , 100 )->nullable ();
17
+ });
18
+ }
19
+
20
+
21
+ /**
22
+ * Reverse the migrations.
23
+ *
24
+ * @return void
25
+ */
26
+ public function down ()
27
+ {
28
+ Schema::table ('users ' , function (Blueprint $ table ) {
29
+ $ table ->dropColumn ('remember_me ' );
30
+ });
31
+ }
32
+
33
+ }
You can’t perform that action at this time.
0 commit comments