Atef95's avatar

Restful api middleware

Hey guys I've a question.. When I'm building a full application with laravel and I have multi auth system ( normal user,admin..etc) So normally in users table I have a specific column to filter between them.. ( restrict normal user from access to dashbard for example) So all of that would be done using middlewares..

Let's say I'm now developping an app with another framework in front ( react ,angular) so do I still need middlewares in the back for multi auth ?? Thank you!

0 likes
2 replies
jaec86's avatar

You can create your own guard and middleware to handle restful authentication.

Atef95's avatar

@JAEC86 - I return a specific status instead of view redirection ?

Please or to participate in this conversation.