Метод |
Описание |
|
ability ( array $attributes = [] ) : Ability |
Get an instance of the ability model. |
|
classname ( string $model ) : string |
Get the classname mapping for the given model. |
|
isOwnedBy ( Model $authority, Model $model ) : boolean |
Determines whether the given model is owned by the given authority. |
|
ownedVia ( string | Closure $model, string | Closure | null $attribute = null ) : void |
Register an attribute/callback to determine if a model is owned by a given authority. |
|
prefix ( ) : string |
Get the prefix for the tables. |
|
reset ( ) : void |
Reset all settings to their original state. |
|
role ( array $attributes = [] ) : Role |
Get an instance of the role model. |
|
setAbilitiesModel ( string $model ) : void |
Set the model to be used for abilities. |
|
setPrefix ( string $prefix ) : void |
Set the prefix for the tables. |
|
setRolesModel ( string $model ) : void |
Set the model to be used for roles. |
|
setTables ( array $map ) : void |
Set custom table names. |
|
setUsersModel ( string $model ) : void |
Set the model to be used for users. |
|
table ( string $table ) : string |
Get a custom table name mapping for the given table. |
|
user ( array $attributes = [] ) : Model |
Get an instance of the user model. |
|