Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Commit 26ae757

Browse files
authored
Update README.md
1 parent 0fb775c commit 26ae757

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,23 @@ Update your authentication guard:
2525
],
2626
```
2727

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:
2939
```php
3040
use Barchart\Laravel\RememberAll\EloquentAuthenticatable as Authenticatable;
3141
use Barchart\Laravel\RememberAll\Contracts\Authenticatable as AuthenticatableContract;
42+
43+
class User extends Model implements AuthenticatableContract
44+
{
45+
use Authenticatable;
46+
}
3247
```

0 commit comments

Comments
 (0)