$args * @return mixed * * @throws \RuntimeException */ public static function __callStatic($method, $args) { /** @var \Illuminate\Contracts\Foundation\Application|null */ $app = static::getFacadeApplication(); if (! $app) { throw new RuntimeException('Facade application has not been set.'); } // Resolve a new instance, avoid using a cached instance $instance = $app->make(static::getFacadeAccessor()); return $instance->$method(...$args); } }