You have to distinguish download and store.
You can download without storing the file or you can store the file without downloading it or you can do both.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Im testing the excel download function on tinker. When I execute the function it creates a file in the storage/framework/laravel-excel dir (file name: laravel-excel-YVzJLj3xe0vuhs2zBg3xaMbdfgto7JmxX.xlsx). But there was no file downloaded to my Downloads folder. After looking up the issue online I found that that is the temp file generated when running the download which also contains the right columns and sheets from my code. The issue is the download is not triggered.
Below is the command that I am using: Excel::download(new TestTemplateExport, 'test-template.xlsx');
Are there any other configuration that might affect this? like the config/excel.php. Did some research and tried multiple suggestions but did not work.
Please or to participate in this conversation.