I am trying to perform multi auth in my laravel project.Initially I put it for user,then token is generated and its working fine.When I add employee too,then token is not generated for employee.When I remove for users and now employee is working but combinly both are not working.
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
//'provider' => 'employees'
],
'api' => [
'driver' => 'token',
'provider' => 'users',
//'provider' => 'employees'
],
'employees' => [
'driver' => 'session',
'provider' => 'employees',
],
],
Can anyone please provide me help.Thanks.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire