-
Notifications
You must be signed in to change notification settings - Fork 3
4.2. Authorization (Roles)
John edited this page Apr 18, 2019
·
2 revisions
Starting with version 2.0, roles can be added on admin account but their application is inbuilt.
- admin
- manager
- staff
- member
- volunteer
- accountant
has_role('admin')
has_role(['admin','manager'])
e.g.
@if(has_role('admin'))
//do something with super powers
@endif
$this->middleware('role:admin');
$this->middleware('role:admin,manager');