0

Getting uncertain error i.e

[![Parse error: syntax error, unexpected '=' in D:\xampp\htdocs\pilotRH\vendor\laravel\framework\src\Illuminate\Support\Arr.php on line 388][1]][1]

When I run artisan command in my old projects and then I test the same case by creating new projects of Laravel artisan command working fine there.

kantsverma
  • 606
  • 1
  • 11
  • 31

1 Answers1

0

It was due to confliction of PHP version in apache and composer. I uninstall the old version of composer and then install the latest version of the composer from https://getcomposer.org/download/

If you are using Ubuntu then you need to upgrade or uninstall it using commands

It works for me :)

kantsverma
  • 606
  • 1
  • 11
  • 31