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
To install the old version of Laravel, the easiest way is to use the composer create-project command. Using this command we only have to specify the project name and Laravel version that we want it to be installed and there you go it's ready.
Server Requirements The Laravel framework has a few system requirements: PHP >= 5.4, PHP < 7. Mcrypt PHP Extension.
Via Download. Once Composer is installed, download the 4.2 version of the Laravel framework and extract its contents into a directory on your server. Next, in the root of your Laravel application, run the php composer. phar install (or composer install ) command to install all of the framework's dependencies.
composer create-project laravel/laravel blog "5.5.*" --prefer-dist
To install Laravel 5.5 you need launch composer create-project as usual and you need to set the “dev-develop” version of the laravel/laravel package:
composer create-project --prefer-dist laravel/laravel blog dev-develop
Where:
Yuo can find more information here https://medium.com/@robertodev/how-to-install-laravel-5-5-dev-d721873a8c89
I had the same problem. For me even
php artisan
did not work.
I fixed it with a simple
cd /my/project/folder
composer update
php artisan key:generate
in the console.
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With