From 26ae757fec935f41beb519324981d2803e813b54 Mon Sep 17 00:00:00 2001 From: Tom Sisk Date: Mon, 14 Oct 2019 18:50:45 -0500 Subject: [PATCH] Update README.md --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 16f0bf1..0daef25 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,23 @@ Update your authentication guard: ], ``` -For Eloquent, you also need to update your model. Just replace Laravel's default `Authenticatable` and `AuthenticatableContract` with the following: +For Eloquent, you also need to update your model. Just replace Laravel's default `User` model with the following: +```php +use Barchart\Laravel\RememberAll\User as Authenticatable; + +class User extends Authenticatable +{ + +} +``` + +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: ```php use Barchart\Laravel\RememberAll\EloquentAuthenticatable as Authenticatable; use Barchart\Laravel\RememberAll\Contracts\Authenticatable as AuthenticatableContract; + +class User extends Model implements AuthenticatableContract +{ + use Authenticatable; +} ```