I would like to use a program (Freescout) as a Laravel program.
It works fine, except
I have to make a cron job:
* * * * * php /var/userdata/web/.../website/helpdesk/artisan schedule:run >> /dev/null 2>&1
, but I can't run it in terminal, can't use any CLI, just set up a Cron to run PHP script. (shared hosting server).
So I've created a file called artisan_schedule_runner.php It would simple do:
Route::get('/foo', function () {
Artisan::call('schedule:run >> /dev/null 2>&1');
//
});
How should I extend my code to get it work?
Thank you in advance!