How to install laravel Globally on Ubuntu
Introduction
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
Step 4 : Install missing composer packages and their dependencies
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
Bachelor of Science in Software Engineering
6 个月This was very helpful, thank you
Front-End Developer
1 年Thank you, this was helpful