I have a function which is converting my blade view into Excel format and downloading it. Now I want to save it in a specified location, i.e: public/uploads/release Here is my controller:
public function export_release()
{
return Excel::download(new ReleaseExportView(), 'release.xlsx');
}
This function downloads the excel file downloads folder. I want to save it in the location: public/uploads/release
Here is my route:
Route::Get('outbounds/export_release' ,'outboundController@export_release')->name('outbounds.export_release');