Illuminate\Database\Eloquent\Model::isGuarded PHP Méthode

isGuarded() public méthode

Determine if the given key is guarded.
public isGuarded ( string $key ) : boolean
$key string
Résultat boolean
    public function isGuarded($key)
    {
        return in_array($key, $this->getGuarded()) || $this->getGuarded() == ['*'];
    }
Model