Auth guard driver [api] is not defined?

两盒软妹~` 提交于 2021-02-09 11:06:15

问题


I use this library jwt-auth-guard in Laravel 5.3.

When I try open page I get error:

InvalidArgumentException in AuthManager.php line 99:
Auth guard driver [api] is not defined.

How can I fix it? I made everything that was need


回答1:


I'm not sure, please check you guard driver setup into config/auth.php first. You can cross check this from GIT repo.

Let me know if any concern from above.




回答2:


If you are using tymondesigns/jwt-auth package first check that you are downloading the latest version (1.0.0-rc.2 for this time) or you can just update your composer

composer update 

and also delete your old jwt file from config folder and publish again also run!

php artisan jwt:secret


来源:https://stackoverflow.com/questions/39409166/auth-guard-driver-api-is-not-defined

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!