I have done the same thing before, however faced with an error on this code:
Excel::create('churros_contact', function($excel){
$excel->sheet('contact', function($sheet){
$sheet->fromModel(Contact::all());
});
})->export('xlsx');
It says :
ZipArchive::close(): Failure to create temporary file: No such file or directory
Where can I modify the directory setting? As for permission, I already set it, so it should be other issues.. What config might I have missed out?
If I change to XLS, it doesn't give me error, but it also doesn't download.