Hi,
I am facing an issue when I use Laravel command to generate a report and send it via email.
Below code working in when I execute it through web route. It saves files into the local folder.
$report->export()->pdf()->saveAs("sakila.pdf");
But when I use the Laravel command, it's not working (not saving files) and throwing an error as below:
PHP Notice: Undefined index: REQUEST_URI in /myproject/vendor/koolreport/export/Handler.php on line 193
Please can you help me here?
Let me know if I can explain further.
Thanks