You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Three directives are available for use within your Blade templates. What you give as the directive arguments will be directly passed to the corresponding `Entrust` function.
362
+
363
+
```php
364
+
@role('admin')
365
+
<p>This is visible to users with the admin role. Gets translated to
366
+
\Entrust::role('admin')</p>
367
+
@endrole
368
+
369
+
@permission('manage-admins')
370
+
<p>This is visible to users with the given permissions. Gets translated to
371
+
\Entrust::can('manage-admins'). The @can directive is already taken by core
372
+
laravel authorization package, hence the @permission directive instead.</p>
373
+
@endpermission
374
+
375
+
@ability('admin,owner', 'create-post,edit-user')
376
+
<p>This is visible to users with the given abilities. Gets translated to
0 commit comments