Ad

Problems Setting Up Laravel

Laravel's command doesn't work for me.

laravel  new potato
-bash: laravel: command not found

I have already installed composer, vendor, and laravel.

I edited the path with nano

sudo nano ~/.bash_profile

I put the path from laravel, I was following the Laracast's tutorial

export $Path = $HOME/.config/composer/vendor/bin

It doesn't work for me I search same info and they say to use

export PATH="$PATH:$HOME/.config/composer/vendor/bin"

And after that use

source ~/.bash_profile
Ad

Answer

try this:

composer create-project laravel/laravel <<project_directory>> --prefer-dist
Ad
source: stackoverflow.com
Ad