July 2018
Intermediate to advanced
420 pages
8h 46m
English
Now, let's make some adjustments to the config.auth.php file in order to protect some routes:
Open project/config/auth.php and replace the API driver with the following code:
'defaults' => [ 'guard' => 'api',
'passwords' => 'users',
],
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'jwt',
'provider' => 'users',
],
],
Read now
Unlock full access