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.
Asked
Active
Viewed 68 times
0
-
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 Answers
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
-
Oh, I cheked this and the php versions in both of my pc were various.Then, I tried to run it in cmmand prompt but it is not working. – Otabek Sadiridinov Jun 13 '19 at 14:22