We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Is there a way to use a different user provider with Statamic 3?

Connor Leech December 11, 2020 by Connor Leech

We have an existing Laravel 6.x app where we've installed Statamic 3. Currently we have two user providers set up. One is for users to login to our main site, the other is for admins to login to our Laravel Nova instance. We're installing Statamic now and would like to either use the same DB users as Nova or use the file driver. In our config/auth.php we have:

    'providers' => [
        'users' => [
            'driver' => 'auth0'
        ],
        'users-nova' => [
            'driver' => 'eloquent',
            'model' => App\User::class,
        ]
    ],

In the docs about using the file driver it mentions to change our "users" provider to "statamic". Is there a way we can specify for Statamic to use the "users-nova" provider or a new provider that we create?

>>>>>>> Unanswered <<<<<<<
4 Replies
3 Followers