Taxonomy
class Taxonomy extends Model (View source)
Traits
Methods to manage permissions on a model.
Properties
static protected | $unguarded | from Model | |
PermissionCollection read-only | $permissions | from HasPermissions |
Methods
MorphMany
permissions()
Relationship with the permission records pertaining to this model.
from
HasPermissions
array
abilities()
No description
array
defaultAbilities()
No description
static array|null
allPermitted(User|null $user, string $ability = 'view')
Get the model IDs that the given user has permission for.
from
HasPermissions
static void
booted()
No description
HasMany
tags()
No description
Attribute
editUrl()
No description
Details
in
Model at line 18
getConnectionName()
No description
static void
bootHasPermissions()
No description
MorphMany
permissions()
Relationship with the permission records pertaining to this model.
array
abilities()
No description
array
defaultAbilities()
No description
void
savePermissions(array|null $grid)
Save the permissions to the database.
bool
isPublic(string $ability = 'view')
No description
static array|null
allPermitted(User|null $user, string $ability = 'view')
Get the model IDs that the given user has permission for.
If the user is an admin, the result will be null, meaning there is no restriction on the models they have permission for.
static protected void
booted()
No description
HasMany
tags()
No description
protected Attribute
editUrl()
No description