Yes, for an admin to login, you can use regular authentication (fortify and web routes), this would be separate for an end user using the api (api routes) which would be token based.
Laravel fortify Auth and Sanctum combination possible?
Hello,
I've been reading multiple articles about Laravel Fortify and Sanctum. The idea is to create an applications that has a backend for administrators and multiple frontends for endusers ( VUEJS PWA, Thrid-party connection, mobile-app, ...).
The frontend users should be able to log in over the API (stateless) and the administrators log in on the backend system (web authentication). I've been looking at different solutions and examples but 90% of the focus on one of two never on both.
I was wondering if it is possible to have endusers log in over API using Sanctum and Admins over the web using default fortify authentication? If you would happen to have some documentation, video's about this subject that can be helpful it would be greatly appreciated.
Thank you in advance for your answer.
Best regards, Bart
Please or to participate in this conversation.