Documentation

GuardsAttributes

Table of Contents

isGuarded()  : bool
Determine if the given key is guarded.

Methods

isGuarded()

Determine if the given key is guarded.

public isGuarded(string $key) : bool

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
$key : string
Return values
bool

Search results