GuardsAttributes
trait Winter\Storm\Database\Concerns\GuardsAttributes
Methods
public isGuarded (string $key) : bool
Determine if the given key is guarded.
This is an override of https://github.com/laravel/framework/commit/897d107775737a958dbd0b2f3ea37877c7526371
and allows fields that don't exist in the database to be filled if they aren't specified as "guarded", under
the pretense that they are handled in a special manner - ie. in the beforeSave
event.
Parameters
Property | Type | Description |
---|---|---|
$key | string |
string
|
Returns
bool
Copyright © 2023 Winter CMS