===================================================================
Open your terminal using Ctrl+Alt+T and type the following commands
composer global require "laravel/installer"export PATH="~/.config/composer/vendor/bin:$PATH"laravel 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.
In my case, I had already installed Composer and Laravel using
$ composer global require laravel/installerbut Laravel was not available at the terminal.
Using the following worked for me:
$ export PATH="~/.config/composer/vendor/bin:$PATH"Thanks a lot!