mercredi 4 mai 2016

Get executed scheduled tasks in laravel 5.1

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