Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Michael Fayez's avatar

MultiAuth with the same page

How to make multiAuth Admin, Teacher, Student with Spatie permission package

0 likes
3 replies
Sinnbeck's avatar

Just a regular sign in page and after they are signed in you redirect to the proper page based on role

Michael Fayez's avatar

@Sinnbeck Thanks for your prompt reply, you are a good person , I did it without package, but I wanna make it with Spatie package roles and permission I don’t know how

jlrdw's avatar
jlrdw
Best Answer
Level 75

@Michael Fayez

I wanna make it with Spatie package roles and permission

Spatie uses laravel authorization and policies, it's not a "different thing". But they have many examples in their documentation.

Edit:

The Admin, Teacher, Student setup has been discussed here probably hundreds of times, a search would also reveal some helpful past answers.

https://laracasts.com/discuss/channels/guides/searching-laravel-forum

Please or to participate in this conversation.