The error is:
Parse error: syntax error, unexpected 'class' , expecting identifier or variable OR '{' OR '$' in c:\xampp\htdocs\laravel\artisan on line 31.
First of all, I haven't made this project but it was running with no problems(it still seems to run ok but I can't run any artisan commands!!). The version of laravel it was running was 5.2 while php was 5.4.31 as it is shown on cmd, although when I run phpinfo() function on xampp it shows 5.6.23. Why is that?
I haven't changed one bit of the code. It started doing this after I had been trying to create another project of laravel in a local folder. Every time I deleted it and installed it again, it kept downloading it on laravel 5.0. What can I do?
I can't update php version because there are a lot of projects that are running on the server and I am afraid I will mess it up.