lundi 6 août 2018

Laravel 5 How can I test scheduler call method

I want to test a scheduler function through console. In kernel.php, I'm calling a controller function like:

$schedule->call('App\Http\Controllers\Administrator\CurrencyController@updatecurrencyDefault')->everyMinute();

From the post https://laravelcode.com/post/laravel-55-task-scheduling-with-cron-job-example, I came to know that scheduler can be tested like:

php artisan CronJob:cronjob

But how can I test the scheduler with the ->call method in the above example, via console?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire