class ReportPolicy

Traits

HandlesAuthorization

Methods

bool|null
before(User $user, string $ability)

Intercept all checks.

bool
access(User $user, Report $report)

Determine if the given report can be accessed by the user.

bool
destroy(User $user, Report $report)

Determine if the given report can be destroyed by the user.

Details

at line 20
bool|null before(User $user, string $ability)

Intercept all checks.

Parameters

User $user
string $ability

Return Value

bool|null

at line 34
bool access(User $user, Report $report)

Determine if the given report can be accessed by the user.

Parameters

User $user
Report $report

Return Value

bool

at line 46
bool destroy(User $user, Report $report)

Determine if the given report can be destroyed by the user.

Parameters

User $user
Report $report

Return Value

bool