protected function hasFormMutator($key)
    {
        $methods  = $this->getReflection()->getMethods(ReflectionMethod::IS_PUBLIC);

        return collect($methods)->filter(function (ReflectionMethod $method) use ($key) {
            return $method->name === $this->getMutateFromMethodName($key);
        })->isNotEmpty();
    }
protected function hasFormMutator($key)
    {
        $methods  = $this->getReflection()->getMethods(ReflectionMethod::IS_PUBLIC);

        return collect($methods)->filter(function (ReflectionMethod $method) use ($key) {
            return $method->name === $this->getMutateFromMethodName($key);
        })->isNotEmpty();
    }
protected function hasFormMutator ( $ key ) { $ methods = $ this -> getReflection ( ) -> getMethods ( ReflectionMethod :: IS_PUBLIC ) ; return collect ( $ methods ) -> filter ( function ( ReflectionMethod $ method ) use ( $ key ) { return $ method -> name === $ this -> getMutateFromMethodName ( $ key ) ; } ) -> isNotEmpty ( ) ; }
Check if has a form mutator.

@param  string  $key

@return bool
Check if has a form mutator .