public static function findFieldClass($method)
    {
        // If alias exists.
        if (isset(static::$fieldAlias[$method])) {
            $method = static::$fieldAlias[$method];
        }

        $class = Arr::get(static::$availableFields, $method);

        if (class_exists($class)) {
            return $class;
        }

        return false;
    }
public static function findFieldClass($method)
    {
        // If alias exists.
        if (isset(static::$fieldAlias[$method])) {
            $method = static::$fieldAlias[$method];
        }

        $class = Arr::get(static::$availableFields, $method);

        if (class_exists($class)) {
            return $class;
        }

        return false;
    }
public static function findFieldClass ( $ method ) { // If alias exists. if ( isset ( static :: $ fieldAlias [ $ method ] ) ) { $ method = static :: $ fieldAlias [ $ method ] ; } $ class = Arr :: get ( static :: $ availableFields , $ method ) ; if ( class_exists ( $ class ) ) { return $ class ; } return false ; }
Find field class.

@param string $method

@return bool|mixed
Find field class .