Silvanite / novatoolpermissions

Laravel Nova Permissions Tool (User, Roles and Permissions / Access Control (ACL))
MIT License
101 stars 33 forks source link

costume tool permission #50

Closed oussama-satoripop closed 5 years ago

oussama-satoripop commented 5 years ago

how to configure tool permission (tool not ressource) ???

oussama-satoripop commented 5 years ago

( new NameTool)::make() ->canSee( function ($request) { return $request->user()->hasRoleWithPermission("accessNameTool"); }