protected function renderExcel() { /** @var Excel $excel */ $excel = app('excel'); $excel->create($this->getFileName(), $this->getOnFileCreate())->export($this->getExtension()); }