public function excel()
    {
        $ext = '.' . strtolower($this->excelWriter);

        return $this->buildExcelFile()->download($this->getFilename() . $ext, $this->excelWriter);
    }
public function excel()
    {
        $ext = '.' . strtolower($this->excelWriter);

        return $this->buildExcelFile()->download($this->getFilename() . $ext, $this->excelWriter);
    }
public function excel ( ) { $ ext = '.' . strtolower ( $ this -> excelWriter ) ; return $ this -> buildExcelFile ( ) -> download ( $ this -> getFilename ( ) . $ ext , $ this -> excelWriter ) ; }
Export results to Excel file.

@return void
Export results to Excel file .