Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5.5 install

Tags:

php

laravel

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

like image 602
Carloscito Avatar asked Jul 07 '17 06:07

Carloscito


People also ask

How do I install an older version of Laravel?

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.

Which PHP version is required for Laravel 5?

Server Requirements The Laravel framework has a few system requirements: PHP >= 5.4, PHP < 7. Mcrypt PHP Extension.

How do I install Laravel?

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.


3 Answers

composer create-project laravel/laravel blog  "5.5.*" --prefer-dist
like image 86
shalini Avatar answered Oct 21 '22 03:10

shalini


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:

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

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

like image 28
Roberto Avatar answered Oct 21 '22 03:10

Roberto


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.

like image 23
Sn00ch Avatar answered Oct 21 '22 01:10

Sn00ch