AlbumPolicy
in package
Table of Contents
Methods
- create() : bool
- Determine whether the user can create models.
- delete() : bool
- Determine whether the user can delete the model.
- forceDelete() : bool
- Determine whether the user can permanently delete the model.
- restore() : bool
- Determine whether the user can restore the model.
- update() : bool
- Determine whether the user can update the model.
- view() : bool
- Determine whether the user can view the model.
- viewAny() : bool
- Determine whether the user can view any models.
Methods
create()
Determine whether the user can create models.
public
create(User $user) : bool
Parameters
- $user : User
Return values
booldelete()
Determine whether the user can delete the model.
public
delete(User $user, Album $album) : bool
Parameters
Return values
boolforceDelete()
Determine whether the user can permanently delete the model.
public
forceDelete(User $user, Album $album) : bool
Parameters
Return values
boolrestore()
Determine whether the user can restore the model.
public
restore(User $user, Album $album) : bool
Parameters
Return values
boolupdate()
Determine whether the user can update the model.
public
update(User $user, Album $album) : bool
Parameters
Return values
boolview()
Determine whether the user can view the model.
public
view(User $user, Album $album) : bool
Parameters
Return values
boolviewAny()
Determine whether the user can view any models.
public
viewAny(User $user) : bool
Parameters
- $user : User