Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use laravel fortify for authentication in multiple places on the same website

When using laravel/UI we can create authentication scaffold on multiple places or for multiple users like admin, normal users by copy-pasting the same scaffold generated by the &--auth flag.

How can we achieve the same with Fortify?

How can we use Fortify to authorize admin and normal users?

like image 436
Ajith Lal Avatar asked Sep 18 '20 13:09

Ajith Lal


1 Answers

See the link below. You need to use config function.
https://max-eckel.dev/posts/multi-guard-authentication-with-laravel-fortify

like image 90
Radomír Avatar answered Sep 30 '22 17:09

Radomír



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!