I am attempting to invoke a route as a cron job. Have attempted several guides such as this:
Call laravel controller via command line and https://laracasts.com/discuss/channels/laravel/croning-a-route
Which leads to this addition in Kernel:
protected function schedule(Schedule $schedule) {
$schedule->call(function () {
(new Cron_c)->start();
})->everyMinute();
}
Which does nothing but output 'Callback' when testing using
php /var/www/html/mySite/artisan schedule:run
outputs
[2022-07-11T15:27:50+00:00] Running scheduled command: Callback
The cron job code runs fine when entering the route into the browser and it outputs log info and on screen.