vendredi 29 septembre 2017

Laravel. Cron work only 1 time

I tryed to start cron in Laravel, what writo time ( Log::info(time()."\r\n");) to log file. I made next steps in console - console

It worked, but only 1 time. Only 1 time programm write time to log file, but in schedule file I put

$schedule->command('command:addToDB')->everyMinute();

My handle function looks like

public function handle()
{
    Log::info(time()."\r\n");
}

Can somebody help me with this problem?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire