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

mehmetanbaki's avatar

Roles

When I make Multi level System Should I make Controller for every single Role or just One Controller for All of them

0 likes
5 replies
jlrdw's avatar

Why not look at some previous answers on multi-tenant. Copy and paste this into Google.

site:laracasts.com multi-tenant Authentication and roles

What do you mean by multi-level, do you mean multi-tenant.

Because a user is a user. No matter the role.

Google search is more powerful than the one here.

And there's free videos on authentication and authorization that Jeffrey provides.

But if you're just talking multiple roles you don't need a controller per role.

Robstar's avatar

What on earth is a "Multi level System"?

Without knowing what it is, making a controller for each role sounds incorrect.

mehmetanbaki's avatar

how is that if you mean just role don't need controller how can I control the pages for every role

Please or to participate in this conversation.