fixed export file name

This commit is contained in:
denisdulici
2020-02-12 12:18:08 +03:00
parent 3dbb2b33e6
commit 2c7b15b331
17 changed files with 56 additions and 15 deletions

View File

@ -195,7 +195,7 @@ abstract class Report
public function export()
{
return \Excel::download(new Export($this->views['content'], $this), $this->model->name . '.xlsx');
return \Excel::download(new Export($this->views['content'], $this), \Str::filename($this->model->name) . '.xlsx');
}
public function setYear()