Role System with Middleware

Posted 3 years ago by giovanniciriello

Hi everybody. I'm new with Laravel, and i'm developing a web app with different type of users. In this web app a User has a level numeric field in his table. I want to permit some operation, some Controller-Methods access in base of his level (e.g. if the level is bigger then x) Should I use middleware? How could I do it in the cleanest and correct way possible? Thank u

Please sign in or create an account to participate in this conversation.