Answers for "where is the guard setting in laravel"

PHP
0

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',
    ],
],
Posted by: Guest on April-13-2021

Code answers related to "where is the guard setting in laravel"

Browse Popular Code Answers by Language