mardi 6 septembre 2016

Laravel 5.1 how to get response from scheduler command

I want get response from the command

my command like this

public function handle(){
    return 'something';
}

Kernel.php

$schedule->command('mycommand')
            ->cron('* * * * *');
$return_value = ?????;
//save $return_value to DB. 

How can I get the command return,

I just want store the result to Database.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire