pefremidis
5 months ago
1075
7
Laravel

php artisan syntax error

Posted 5 months ago by pefremidis

Hello, I uploaded one of my projects to a server and I'm using task scheduling in it. I added the cronjob as the documentation says but it seems that something is wrong with the artisan command.

PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in .../artisan on line 31

I am using Laravel Framework 5.7.28 and PHP 7.3.8

Locally on my machine, everything works as expected!

Please sign in or create an account to participate in this conversation.