-
Notifications
You must be signed in to change notification settings - Fork 0
Template Helpers
Carlos G. Camacho O edited this page May 15, 2018
·
1 revision
Shinobi comes bundled with custom template methods to easily check for permissions and roles from within your view files.
@can('create.blog.post')
Do whatever
@else
Do something else
@endcan
@canatleast(['edit.blog.post', 'create.blog.post'])
Do whatever
@else
Do something else
@endcanatleast
@role('admin')
Do whatever
@else
Do something else
@endrole