Skip to content

Commit

Permalink
Update Users.md
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed May 18, 2023
1 parent cafdbb0 commit 5bfa140
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docs/Users.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,12 @@ The default implementation looks like this:

declare(strict_types=1);

namespace Auth0\Laravel\Auth\User;
namespace Auth0\Laravel;

use Auth0\Laravel\Auth\User\RepositoryContract;
use Auth0\Laravel\Entities{StatefulUser, StatelessUser};
use Auth0\Laravel\Users\{StatefulUser, StatelessUser};
use Illuminate\Contracts\Auth\Authenticatable;

final class Repository implements RepositoryContract
final class UserRepository extends UserRepositoryAbstract implements UserRepositoryContract
{
public function fromAccessToken(array $user): ?Authenticatable
{
Expand Down Expand Up @@ -134,10 +133,12 @@ declare(strict_types=1);

namespace App\Models;

use Auth0\Laravel\Entities\UserAbstract;
use Auth0\Laravel\Users\{UserAbstract, UserContract, UserTrait};

final class User extends UserAbstract
final class User extends UserAbstract implements UserContract
{
use UserTrait;

protected $table = 'users';

protected $fillable = [
Expand All @@ -155,7 +156,7 @@ final class User extends UserAbstract

### Integrating the Repository and Model

Once you have created your repository and model, you can integrate them into your application by updating your `config/auth.php` file:
Once you have created your repository and model, you can integrate them into your application by updating your `config/auth.php` file and pointing the `repository` key to your repository class.

```php
/**
Expand Down

0 comments on commit 5bfa140

Please sign in to comment.