In Kernel.php I have several tasks that runs once ot twice a day.
When I call php artisan schedule:run in the console I can see a response with "No scheduled commands are ready to run" or "Running scheduled command: xxxx".
I want to retrieve this messages to store them while running function schedule(Schedule $schedule){} in Kernel.php
The last think I tried is using ob_start(); and ob_get_contents(); but theese only returns my own echo();.
Adding ->getSummaryForDisplay() to the register command doesn't display if a command was executed or not.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire