Hi
I need to send an email out with an excel attachment create from "laravel Excel"
this is all done at the same time
in the controller i have
Excel::store(new ConsumptionExport($this->vehicles), 'Consumptions.xlsx');
and in the mail class i have
return $this->from('[email protected]')->markdown('emails.consumptionreport')->attach(storage_path('Consumptions.xlsx'));
however in the logs on vapor i am receiving
Illuminate\Contracts\Filesystem\FileNotFoundException
10:03:41 AM
Unable to open file for reading [/tmp/storage/Consumptions.xlsx]
/var/task/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemAdapter.php:134
any help would be really appreciated.