Permission Module

how can we add custom module in permission

2 years ago

You can use Permission Facade to add a custom permission.

Only the limitation that it has now is ... all the route needs to be a named route as laravel you can do it.

$group = PermissionFacade::add(
	            function (PermissionGroup $group) {
	            function (Permission $permission) {
	                $permission->label('Permission Label')
	                    ->routes('route named');
Want to contribute?

© AvoRed 2022 Privacy