5 months ago

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

Posted 5 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...


'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.