Collective\Html\Eloquent\FormAccessible::hasFormMutator PHP Method

hasFormMutator() protected method

protected hasFormMutator ( $key ) : boolean
$key
return boolean
    protected function hasFormMutator($key)
    {
        $methods = $this->getReflection()->getMethods(ReflectionMethod::IS_PUBLIC);
        $mutator = collect($methods)->first(function (ReflectionMethod $method) use($key) {
            return $method->getName() == 'form' . Str::studly($key) . 'Attribute';
        });
        return (bool) $mutator;
    }