Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsisk authored Oct 14, 2019
1 parent 0fb775c commit 26ae757
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
```

0 comments on commit 26ae757

Please sign in to comment.