Illuminate\Database\Eloquent\Model::isGuarded PHP Method

isGuarded() public method

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