Installing laravel --prefer-dist

Asked
Active3 hr before
Viewed126 times

4 Answers

laravelinstalling
90%

composer create-project laravel/laravel --prefer-dist, Meta Stack Overflow ,Stack Overflow en español,I am following the Laravel installation on their website and I came across this line

--prefer-dist and --prefer-source are the two options of composer which included in various documentations with a lack of proper explanation.

--prefer - dist

--prefer-dist and --prefer-source are the two options of composer which included in various documentations with a lack of proper explanation.

--prefer - source
load more v
88%

First, download the Laravel installer using Composer.,The first thing you should do after installing Laravel is set your application key to a random string. If you installed Laravel via Composer, this key has probably already been set for you by the key:generate command.,The Laravel framework has a few system requirements:,You may also install Laravel by issuing the Composer create-project command in your terminal:

First, download the Laravel installer using Composer.

composer global require "laravel/installer=~1.1"
load more v
72%

composer global require laravel / installer
laravel new blog
65%

In this tutorial we will learn how to install laravel on your local machine. , If you do not know how to install composer locally click on the following tutorial: , You need to install following things first in order to run your laravel project on vagrant box: , Now, we can get straight to installing laravel app locally. You need to have following things installed before you install laravel:

Once you have composer installed globally on your operating system run following commands:

# install laravel installer
composer global require laravel / installer

# once composer installs laravel dependency you need
# to make sure you are able to run laravel command
#
let 's add laravel to our path variable
sudo nano~/.bash_profile

# add following line to your open file
for linux users
export PATH = $HOME / .config / composer / vendor / bin: $PATH

#
for mac user add following line
$HOME / .composer / vendor / bin

# save the changes and source the file
sudo source~/.bash_profile

# close the terminal and re - open and run following command
laravel new projectName

#
if some reason above command does not work
try this
$HOME / .composer / vendor / bin / laravel new projectName​
load more v

Other "laravel-installing" queries related to "Installing laravel --prefer-dist"