Property | Type | Description | |
---|---|---|---|
$table | string | The name of the abilities table. |
Method | Description | |
---|---|---|
__construct ( ) | Constructor. | |
constrain ( |
Constrain a query to an ability for a specific model or wildcard. |
Method | Description | |
---|---|---|
abilitySubqueryConstraint ( |
Get the constraint for the ability subquery. | |
constrainByModel ( |
Constrain a query to an ability for a specific model. | |
constrainByWildcard ( |
Constrain a query to a model wiildcard. |
protected abilitySubqueryConstraint ( |
||
$model | ||
$strict | boolean | |
return | Closure |
protected constrainByModel ( |
||
$query | ||
$model | ||
$strict | boolean | |
return | void |
protected constrainByWildcard ( |
||
$query | ||
$strict | boolean | |
return | void |