Problem:
- PHP Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{‘ or ‘$’ in …/artisan on line 31
- $kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
Solution:
::class is only available from PHP 5.5 onward, So updating php version of the SERVER will solve the problem.
First check php version of your server with command line.
php -v
Note that phpinfo() may give different version that with the php -v