I got this error in error_log after create cron job on cpanel.
PHP Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' in /home/kardenoc/Smartflyer/artisan on line 33
this is the line mentioned:
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
I'm using php 7.2(choose php 7.2 on cpanel) and laravel 6. whole process is working expect this cron job.
php -v
in your terminal. It is possible that this is not the same as the webserver version. – Jerodev