Talky's avatar
Level 2

Ranks, permissions, every-request checks

Laravel 5.4

Hello Laracasters,

I'm making a game-like website for me and my friends and would gladly listen to your advices. So I need a good, well-tested and supported roles management system for Laravel 5.4 so I can make new ranks, name them and grant or deny permissions to certain users.

Also, I have "alive" and "jail" system which I want to check users against on every request so if a user is jailed the only place he can visit is his cell. What I currently did is I added custom functionality to Middleware/Authenticate.php to handle function, and it works. But my question is - is this solution any good? I bet there's better.

I thought about doing separate middleware to check all this stuff, but then I would have to group it with other middlewares, and I'm going to have quite a lot of them. I think my current solution saves me some coding, but how about performance?

Please post with reference links.

0 likes
0 replies

Please or to participate in this conversation.