How to make ‘Laravel New Project’ globally accessible for all users

These instructions are for Linux. If you have a Mac, please follow the official guide mentioned in the reference at the end of this article

If composer is installed, you can do this:

composer global require laravel/installer

If you get this:

    - laravel/installer v2.0.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.

Do this:

sudo apt-get install php-zip

Edit .bashrc

Under the export PATH statement, do this:

export PATH=$PATH:$HOME/.config/composer/vendor/bin


Share this article

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top