DEV Community

Discussion on: Implementing Laravel's built-in token authentication

Collapse
 
sebasydoc profile image
Sebastian Rovira

When I execute the last step, I have an error -> InvalidArgumentException: Auth guard [api] is not defined.

Do you know what could be the problem ?

Collapse
 
sebasydoc profile image
Sebastian Rovira

It was my bad !! I just had to execute this command:

php artisan config:clear