Level 28
You should use Excel::store() instead. https://docs.laravel-excel.com/3.1/exports/store.html
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I just want to export My database table and store that excel file in to the public folder.Here is my code but it's not working properly.
Excel::download(new CleanSheetsExport, public_path('clean_sheet/' . preg_replace('/[^A-Za-z0-9-]/', '', $retailer->user->name) . ' ' . $retailerReportSubmission->location . ' ' . Carbon::parse($retailerReportSubmission->date)->format('M') . '.xlsx'));
Please or to participate in this conversation.