Answers for "laravel guard login not working"

PHP
0

Auth log out laravel

Auth::logout();
Posted by: Guest on August-11-2020
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 "laravel guard login not working"

Browse Popular Code Answers by Language