public function refreshApplication($app = null)
    {
        $this->app = $app instanceof Application ? $app : $this->createApplication();
    }
public function refreshApplication($app = null)
    {
        $this->app = $app instanceof Application ? $app : $this->createApplication();
    }
public function refreshApplication ( $ app = null ) { $ this -> app = $ app instanceof Application ? $ app : $ this -> createApplication ( ) ; }
Refresh the application instance.

@param \Illuminate\Foundation\Application|null $app Optionally provide your own unbooted Laravel Application instance. This parameter can largely be ignored and is used just for unit testing
@return void
Refresh the application instance .