ADD GUARD laravel code example
Example 1: laravel guard
They arere the definition of how the system should store and retrieve
]information about your users.
You can find the configuration in your config/auth.php
https:
https:
Example 2: where is the guard setting in laravel
You have to also register the guard in the config\auth.php
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'token',
'provider' => 'users',
],
'admin' => [
'driver' => 'session',
'provider' => 'admins',
],
],