Does Any one has and idea how to use applicants table (for example) instead of users table with laravel sanctum?
I tried adding this to auth.php but it didn’t work
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'sanctum',
'provider' => 'applicant',
],
],
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => env('AUTH_MODEL', AppModelsUser::class),
],
'applicants' => [
'driver' => 'eloquent',
'model' => env('AUTH_MODEL', AppModelsAPIApplicant::class),
],
],
New contributor
Abdelfattah Omar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.