Laravel 5 Installation in Ubuntu: command not found
In this post we will give you information about Laravel 5 Installation in Ubuntu: command not found. Hear we will give you detail about Laravel 5 Installation in Ubuntu: command not foundAnd how to use it also give you demo for it if it is necessary.
As we know, Installing Laravel from terminal via laravel installer is very easy but sometime get error with some command ‘command not found’.
In this post, i am going to share best solution of getting error Laravel command not found ubuntu.
At the time of fresh Laravel installment, you may face this type of error because of path setup.
When i get this error first time then i search a lot and did not find clear explaination on their official docs. Whenever i try to run command following with laravel then always i got error of Laravel command not found.
There is a simple solution to resolve this.
laravel command not found on ubuntu :-
You will have to set path properly for composer vendors because PATH file does not know where laravel is installed so update path to let it know where laravel is :
# first download Laravel installer via composer :
composer global require "laravel/installer=~1.1"
#Path setup
export PATH="~/.composer/vendor/bin:$PATH"
# check laravel command
Laravel --version
Output : Laravel Installer version 1.1
Now you can easily install laravel project in your directory by running following command :
# install laravel project in blog dir.
laravel new blog
This was the most common errors you are getting “Laravel: command not found”. Now you should be able to run laravel commands.
Hope this code and post will helped you for implement Laravel 5 Installation in Ubuntu: command not found. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs