Creating permissions for custom page
I tried to create a permission for custom page, but always get 403 error, I did all Create permission, Set Role , but when I try to customize the controller, I don't know where to put this... ** protected function guard() { return Auth::guard(app('VoyagerGuard')); } ** Please help!!!
I know what was my error.... In the Controller I wrote
$this->authorize(
browse_import
); And has to be $this->authorize('browse_import'); The problem was in the Apostrophe
Thanks!!!