Dec 22, 2016
0
Level 5
How to Assign Permission to Roles using Laravel-Permissions Package
i have following situation... Roles: Admin, Staff Permission: student_update
- Insert this above permission into permissions table.
- Assign Roles to specific users...
- Assign Permission to Admin User in permission_roles table.
now i want to show edit button to just admin and for this i use this following code...
@can( 'student_update' )
'<a style=\'color:#000\' class=\'fa fa-edit\' title=\'Edit\' href=' . url( 'admin/students/1' ) . '></a> ';
@endcan
i want to assign permissions role base not user specific....
Please or to participate in this conversation.