0

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?

1 Answers1

1

From this post Configure and Test Laravel Task Scheduling, I ran the command below and its all okay.

php artisan schedule:run