How to install Laravel 5.0

I'm having trouble starting and running a test instance of Laravel 5.0, so I can help with this transition.

1) Creating a new application from https://github.com/laravel/laravel/tree/develop leads to the following error when running composer install .

 {"error": {"type":"ErrorException", "message":"Undefined index: timezone", "file":"\/Projects\/indatus\/dispatcher-test-app\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/start.php", "line":167} } {"error": {"type":"ErrorException", "message":"Undefined index: timezone", "file":"\/Projects\/indatus\/dispatcher-test-app\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/start.php", "line":167}} 

Am I missing something?

UPDATE: This question / answer was only relevant when Laravel 5 was under development. You should now refer to the Laravel Documentation on how to install Laravel

+68
php laravel laravel-5 composer-php
Sep 20 '14 at 12:02
source share
5 answers

Since Laravel 5 is already the final release, you must run to install it

 composer create-project laravel/laravel test-laravel-5-project --prefer-dist 

in the console. test-laravel-5-project is the name of your project, which you can call in any case, for example, myblog, myapp, etc. Laravel files will be placed in this directory

You can also use an alternative method using

 composer global require "laravel/installer=~1.1" 

and then run

 laravel new test-laravel-5-project 

For details, you should look at the official Laravel installation notes.




The following answer is retained only for historical reasons, and it was valid when Laravel 5 was still under development. Now you should use only the method mentioned above

I just checked this, and there are two ways to install Laravel 5:

One-step method

You just run:

 composer create-project laravel/laravel test-laravel-5-project dev-develop --prefer-dist 

and the composer will create the whole directory structure. The test-laravel-5-project command above indicates your project name - you can, of course, name it whatever you want (the composer will create a directory with that name and put all the Laravel5 files in this directory)

Multistage method

Using both methods when launching the URL of your project in a browser (for example, http://localhost/projects/test-laravel-5-project/public depending on the settings of your web server), you will get the standard Laravel You have arrived. website You have arrived.

Both methods should work well. Give one try, depending on what suits you best.

+124
Sep 20 '14 at 13:26
source share
β€” -

Go to the CLI and enter the following command line. make sure the composer is already installed.

$composer create-project laravel/laravel <yourdirectryname> dev-develop It will ask you a question about deleting .git files, then enter Y. change the directory to

$cd <yourdirectoryname> then enter the following command

$ php artisan -V

You will see the following message.

Laravel Framework version 5.0-dev means you have successfully installed laravel 5!

+8
Sep 23 '14 at 14:38
source share

Run this command from which you want to save the project

 composer create-project laravel/laravel <projectname> 

Remember that it will download the latest laravel app from git.

if you are using linux then give permission to the boot / cache and repository by running the command chmod 777 -R <dir name> from the root of your laravel project

+1
Feb 24 '16 at 6:35
source share

global composer requires "laravel / installer = ~ 1.1"

0
Sep 21 '16 at 10:07 on
source share

First you need to globally install laravel on your system with this command

the global composer requires laravel / installer then you can install Laravel in three ways, 1) Go to laravel github Reqosritory and download it zip and then get ssh or Https URL and install it from CMD or Git bash 2) open Git bash, just write laravel new there, it will download the latest version of laravel 3) open cmd or git bash and write there. composer, creation-project - prepre-dist laravel / laravel blog if you want to install some old version, you can write a mention of the version in the latter. composer create-project --prefer-dist laravel / laravel blog 5.2. *

0
Aug 22 '19 at 10:37
source share



All Articles