Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /home/virtwww/w_igovnokoder-ru_d1c3537d/http/index.php on line 50

  • use the composer, and there will be no similar errors: in the console, go to the folder with the future project, and run the command composer create-project --prefer-dist laravel/laravel ./ "5.5.*" - Edward
  • and what should I do now? already created) what to do to make it work? - user247118
  • reinstall using a composer, but first you need to remove everything from the directory. - Edward
  • Get used to not only asking "what should I do now", but also "how to avoid similar mistakes in the future"? For example, Git would help you - see what changes have been since the last working version of the file. </ MoralsOff> - AK

1 answer 1

Check the file index.php and specifically line 50 - apparently when copying or before copying, either a noise symbol got there, or the bracket is not closed }