laravel / fortify

Backend controllers and scaffolding for Laravel authentication.
https://laravel.com/docs/fortify
MIT License
1.61k stars 294 forks source link

Unsupported api guard #141

Closed gaelreyrol closed 3 years ago

gaelreyrol commented 3 years ago

Description:

If I configure Fortify guard to api, it throws an error when requesting any controller using a guard property. The api guard is a TokenGuard and every controller needs a StatefulGuard.

Is Fortify not supposed to be used with api guard ?

Regards

taylorotwell commented 3 years ago

No, it's not supposed to be used with that guard.

driesvints commented 3 years ago

I've sent in a PR to the docs to clarify this: https://github.com/laravel/fortify/pull/146