Skip to content

Latest commit

 

History

History
70 lines (47 loc) · 1.93 KB

File metadata and controls

70 lines (47 loc) · 1.93 KB

# 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.

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

Courtesy

PattiePHP