public function checkForMutator($key, $type)
    {
        $str = $type.Str::studly($key).'Attribute';

        if (is_callable([$this, $str])) {
            return $str;
        }

        return false;
    }
public function checkForMutator($key, $type)
    {
        $str = $type.Str::studly($key).'Attribute';

        if (is_callable([$this, $str])) {
            return $str;
        }

        return false;
    }
public function checkForMutator ( $ key , $ type ) { $ str = $ type . Str :: studly ( $ key ) . 'Attribute' ; if ( is_callable ( [ $ this , $ str ] ) ) { return $ str ; } return false ; }
Checks if there is a mutator present.

@param string $key  The attribute name to check.
@param string $type Either get or set.

@return mixed Either a string if it is callable or false.
Checks if there is a mutator present .