src/Form/Type/Select.php
protected function callableOptions($callable)
    {
        // resolve closure
        if (is_callable($callable)) {
            return $callable;
        }

        // resolve callable "Class@method" style
        if (is_string($callable) && list($class, $method) = explode('@', $callable)) {
            return [app()->make($class), $method];
        }

        // resolve callable [$object, "method"]
        if (2 === count($callable) && array_key_exists(0, $callable) && array_key_exists(1, $callable)) {
            if (is_object($class = $callable[0]) && is_string($method = $callable[1]) && method_exists($class, $method)) {
                return [$class, $method];
            }
        }

        return false;
    }
protected function callableOptions($callable)
    {
        // resolve closure
        if (is_callable($callable)) {
            return $callable;
        }

        // resolve callable "Class@method" style
        if (is_string($callable) && list($class, $method) = explode('@', $callable)) {
            return [app()->make($class), $method];
        }

        // resolve callable [$object, "method"]
        if (2 === count($callable) && array_key_exists(0, $callable) && array_key_exists(1, $callable)) {
            if (is_object($class = $callable[0]) && is_string($method = $callable[1]) && method_exists($class, $method)) {
                return [$class, $method];
            }
        }

        return false;
    }
protected function callableOptions ( $ callable ) { // resolve closure if ( is_callable ( $ callable ) ) { return $ callable ; } // resolve callable "Class@method" style if ( is_string ( $ callable ) && list ( $ class , $ method ) = explode ( '@' , $ callable ) ) { return [ app ( ) -> make ( $ class ) , $ method ] ; } // resolve callable [$object, "method"] if ( 2 === count ( $ callable ) && array_key_exists ( 0 , $ callable ) && array_key_exists ( 1 , $ callable ) ) { if ( is_object ( $ class = $ callable [ 0 ] ) && is_string ( $ method = $ callable [ 1 ] ) && method_exists ( $ class , $ method ) ) { return [ $ class , $ method ] ; } } return false ; }
Parse options and try to resolve values.

@param $callable

@return mixed bool|array|callable
Parse options and try to resolve values .