问题
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