You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 17, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,23 @@ Update your authentication guard:
25
25
],
26
26
```
27
27
28
-
For Eloquent, you also need to update your model. Just replace Laravel's default `Authenticatable` and `AuthenticatableContract` with the following:
28
+
For Eloquent, you also need to update your model. Just replace Laravel's default `User` model with the following:
29
+
```php
30
+
use Barchart\Laravel\RememberAll\User as Authenticatable;
31
+
32
+
class User extends Authenticatable
33
+
{
34
+
35
+
}
36
+
```
37
+
38
+
If you're not extending off of Laravel's base `User` model and instead extending directly off of Eloquent's `Model`, replace Laravel's default `Authenticatable` and `AuthenticatableContract` with the following:
29
39
```php
30
40
use Barchart\Laravel\RememberAll\EloquentAuthenticatable as Authenticatable;
31
41
use Barchart\Laravel\RememberAll\Contracts\Authenticatable as AuthenticatableContract;
42
+
43
+
class User extends Model implements AuthenticatableContract
0 commit comments