Chron
158
4
Laravel

Is there any way to change the default `User` table that's used for Auths

Posted 2 months ago by Chron

What is the recommended way of changing the user table? I'm trying to make an auth page for admin, customers and companies that connects to accounts table, I modified the config/auth.php already...

Auth.php

'providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => App\Customer::class,
        ],
        'companies' => [
            'driver' => 'eloquent',
            'model' => App\Company::class,
        ],
        'admins' => [
            'driver' => 'eloquent',
            'model' => App\Admin::class,
        ],

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.