/** * Refresh the application instance. * * @return void */ protected function refreshApplication() { $this->app = $this->createApplication(); $this->client = $this->createClient(); $this->app->setRequestForConsoleEnvironment(); $this->app->boot(); }