Support the ongoing development of →
Blade Architecture Authorization
Last updated by @ajax30 1 year ago.

You can have a look at and see how they did it. It's basically the same thing you are trying to do and I don't know why you try to reinvent the wheel.

Last updated by @geowrgetudor 2 years ago.
Blade::if('hasPermissionTo', function ($permission) {
    return in_array($permission, $this->user_permissions);
Solution selected by @ajax30

Sign in to participate in this thread!


Your banner here too?

Razvan ajax30 Joined 2 Oct 2021


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.