Clients authentication and user authentication with laravel
PHP Snippet 1:
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'passport',
'provider' => 'users'
// 'hash' => false,
],
// Guard For Customer
'custome_api' => [
'driver' => 'passport',
'provider' => 'customers'
],
],
PHP Snippet 2:
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\Models\User::class,
],
'customers' => [
'driver' => 'eloquent',
'model' => App\Models\Customer::class,
],
],