Illuminate\Support\Facades\Facade::clearResolvedInstances PHP Method

clearResolvedInstances() public static method

Clear all of the resolved instances.
public static clearResolvedInstances ( ) : void
return void
    public static function clearResolvedInstances()
    {
        static::$resolvedInstance = [];
    }

Usage Example

 /**
  * After each scenario, reboot the kernel.
  */
 public function reboot()
 {
     Facade::clearResolvedInstances();
     $lumen = new LumenBooter($this->app->basePath());
     $this->context->getSession('lumen')->getDriver()->reboot($this->app = $lumen->boot());
     $this->setAppOnContext();
 }
All Usage Examples Of Illuminate\Support\Facades\Facade::clearResolvedInstances