public function __construct(Application $app) { $this->app = $app; $this->httpKernel = $this->app->make('Illuminate\\Contracts\\Http\\Kernel'); $this->httpKernel->bootstrap(); $this->app->boot(); parent::__construct($this); }