class PermissionCollection extends Collection (View source)

Methods

scope(Model|string $model)

Get the permission records pertaining to a specific model.

bool
can(Group|null $recipient, string $ability, Model|string $scope)

No description

array
ids(Group|null $recipient, string $ability, string $scope)

No description

Details

PermissionCollection scope(Model|string $model)

Get the permission records pertaining to a specific model.

Parameters

Model|string $model

Return Value

PermissionCollection

bool can(Group|null $recipient, string $ability, Model|string $scope)

No description

Parameters

Group|null $recipient
string $ability
Model|string $scope

Return Value

bool

array ids(Group|null $recipient, string $ability, string $scope)

No description

Parameters

Group|null $recipient
string $ability
string $scope

Return Value

array