ModelGuards::for()
Returns the guards for the model, bound to the currently authenticated user.
ModelGuards::for(Model $model): ModelGuards
Parameters
| Name | Type | Default |
|---|---|---|
| $modelrequired | Kirby\Cms\Model |
no default value |
Returns the guards for the model, bound to the currently authenticated user.
ModelGuards::for(Model $model): ModelGuards
| Name | Type | Default |
|---|---|---|
| $modelrequired | Kirby\Cms\Model |
no default value |