Installing Laravel 5.5

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 ']' 

      

Is it just me or is it because it's not released yet?

EDIT: Btw this is when I try to do php artisan key:generate

... If I put any key in .env it works ...

thank

+3


source to share


4 answers


composer create-project laravel/laravel blog  "5.5.*" --prefer-dist

      



+12


source


To install Laravel 5.5, you need to create a linker project as usual and you need to install the devarvelop version for the laravel / laravel package:

composer create-project --prefer-dist laravel/laravel blog dev-develop

      

Where:



  • laravel / laravel: package for installing Laravel;
  • blog: new directory for your new project (you can change it);
  • dev-develop: The next version of Laravel.

Yuo can find more information here https://medium.com/@robertodev/how-to-install-laravel-5-5-dev-d721873a8c89

+7


source


I had the same problem. For me even

php artisan

      

does not work.

I fixed it with simple

cd /my/project/folder
composer update
php artisan key:generate

      

in the console.

Hope it helps.

+1


source


This is due to your version of Laravel Installer . I faced the same problem.

Run the following command:

composer global update

(it will update your Laravel installer)

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

composer update

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

Additionally:

This can sometimes trigger the Composer version . You can update your composer version by running the following command: composer self-update

Then you can update the project files.

Hope this answer helps you.

0


source







All Articles