Bånder

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
bool

delete()

Determine whether the user can delete the model.

public delete(User $user, Album $album) : bool
Parameters
$user : User
$album : Album
Return values
bool

forceDelete()

Determine whether the user can permanently delete the model.

public forceDelete(User $user, Album $album) : bool
Parameters
$user : User
$album : Album
Return values
bool

restore()

Determine whether the user can restore the model.

public restore(User $user, Album $album) : bool
Parameters
$user : User
$album : Album
Return values
bool

update()

Determine whether the user can update the model.

public update(User $user, Album $album) : bool
Parameters
$user : User
$album : Album
Return values
bool

view()

Determine whether the user can view the model.

public view(User $user, Album $album) : bool
Parameters
$user : User
$album : Album
Return values
bool

viewAny()

Determine whether the user can view any models.

public viewAny(User $user) : bool
Parameters
$user : User
Return values
bool

        
On this page

Search results