Laravel 5.5 install

Viewed 34455

When I try to install Laravel 5.5 with laravel new project --dev

[Symfony\Component\Debug\Exception\FatalThrowableError]           
  Parse error: syntax error, unexpected '<<' (T_SL), expecting ']' 

It is just me or because it is not release yet?

EDIT: Btw, it is when I try to make php artisan key:generate... If I put any key in .env it works...

Thanks

4 Answers

This is happening because of your Laravel Installer version. I have faced the same problem.

Run following command:

composer global update (it will update your Laravel Installer)

If you don't want to install again, then fix by following command:

composer update (from your project directory and it will update your project files)

Additional:

Sometimes, it may cause of Composer version. You can update your composer version by following command: composer self-update

Then you can update your project files.

Hope this answer will help you.

Related