Method Illuminate\Auth\RequestGuard::attempt does not exist

前端 未结 2 1479
囚心锁ツ
囚心锁ツ 2021-02-19 07:13

I am new to both laravel and lumen. I was creating a login api with oauth2.0 in lumen 5.6, i have installed passport and generated token. Below is my login controller function a

2条回答
  •  忘了有多久
    2021-02-19 07:20

    Changing default guard to "web" fixed my problem.

    config/auth.php:

    'defaults' => [
            'guard' => 'web',
            'passwords' => 'users',
        ],
    

提交回复
热议问题