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

Ace's avatar
Level 7

how do you separate layouts/partials for different roles?

I was wondering your approach to a multiple user role and permission admin system. how and where do you separate logic from view?

0 likes
1 reply
mstnorris's avatar

Check out this lesson. You're a subscriber so make the most of them.

As for separating the logic, it's up to you. for small apps, you could use the same views (shared) and check in certain parts whether the authenticated user is an admin (for example). Or you could have completely separate views, and controllers.

Please provide more details about what you want.

2 likes

Please or to participate in this conversation.