We are running a command where the data is fetched. And we want to create the excel with charts in it which nee to be sent as attachment. When executing the command nothing happened. Can anyone please help me.
public function handle()
{
try{
Excel::download(new emailTriggerExport,'exportTrigger.xlsx');
}catch(Exception $e){
dd($e);
Log::error('EmailReportTrigger-command () : '.$e->getMessage());
return false;
}
}