registered('laravel.cache.'.$driver)) { throw new \Exception("Cache driver [$driver] is not supported."); } return static::$drivers[$driver] = IoC::container()->resolve('laravel.cache.'.$driver); } return static::$drivers[$driver]; } /** * Pass all other methods to the default cache driver. * * Passing method calls to the driver instance provides a convenient API for the developer * when always using the default cache driver. */ public static function __callStatic($method, $parameters) { return call_user_func_array(array(static::driver(), $method), $parameters); } }