which has some menus and submenus . In the app ADMIN can access roles menu and permission menus to create roles and assign permission . permisssion will be all submenus . ADMIN can assign ceratin permissions(submenus) . waht authorization method should i use for this gate , policies ?
You can create gate and policies manually but I'm sure this can be done better by using third party packages. https://github.com/spatie/laravel-permission
Обсуждают сегодня