Smouth RB
Smouth RB

Reputation: 13

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

Upvotes: 1

Views: 53

Answers (1)

di3sel
di3sel

Reputation: 2012

try this:

composer create-project laravel/laravel <<project_directory>> --prefer-dist

Upvotes: 1

Related Questions