MetaFox

ReportReasonPolicy
in package
Uses HasPolicyTrait

Table of Contents

Properties

$type  : string

Methods

__call()  : bool
create()  : bool
Determine whether the user can create models.
delete()  : bool
Determine whether the user can delete 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.
viewOnProfilePage()  : bool

Properties

Methods

__call()

public __call(string $ability, array<string|int, mixed> $arguments) : bool
Parameters
$ability : string
$arguments : array<string|int, mixed>
Return values
bool

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) : bool
Parameters
$user : User
Return values
bool

update()

Determine whether the user can update the model.

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

view()

Determine whether the user can view the model.

public view(User $user) : bool
Parameters
$user : User
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