0

When I tried this code in command promt in my directory of laravel project: php artisan migrate: I always get this error warnig what is the reason and how I an fix it: PHP Parse error: syntax error, unexpected ':' in C:\xampp\htdocs\blog\vendor\composer\autoload_real.php on line 66.

  • Possible duplicate of [PHP parse/syntax errors; and how to solve them?](https://stackoverflow.com/questions/18050071/php-parse-syntax-errors-and-how-to-solve-them) – Nico Haase Jun 13 '19 at 06:54

1 Answers1

1

You most likely got different PHP version installed on other machine and that version is too old. Compare versions with php --version and upgrade.

Marcin Orlowski
  • 72,056
  • 11
  • 123
  • 141