# How to install laravel Globally on Ubuntu/linux
=================================================================================
Laravel hasn't been easy especially to beginners,NOTE THIS especially when it comes to configuring laravel and composer to work globally. This series Brings to all newbies how to do that,in just a few simple steps.
Laravel uses composer to run and create projects,before proceeding with this install,please ensure you have composer install globally,is not you must first install from their official page here.
Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.
Open your terminal by using Ctrl+Alt+T and type the following commands.
composer global require "laravel/installer"
cd ~
sudo nano .bashrc
export PATH="$PATH:$HOME/.config/composer/vendor/bin"
source ~/.bashrc
laravel new mail
cd mail
composer install && composer update
Open the application using your favorite IDE i.e PHPstorm or code
php artisan serve
You have successfully installed and tested laravel globally.Well done. Terminate php server in terminal by pressing =>
Ctrl+C
Courtesy