===================================================================
Open your terminal using Ctrl+Alt+T and type the following commands
composer global require "laravel/installer"cd
sudo nano .bashrcexport PATH="$PATH:$HOME/.config/composer/vendor/bin"source ~/.bashrclaravel new blogcd blog
composer installphp artisan serveOpen a web browser and visit localhost:8000 to see the laravel welcome page
Terminate php server in terminal by pressing Ctrl+C
Thus you have successfully installed laravel globally.