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?