DEV Community

Cover image for Create a Laravel Project by setting "laravel" as global
Emmanuel Morales
Emmanuel Morales

Posted on

2 2

Create a Laravel Project by setting "laravel" as global

Install Laravel Via Composer

  • Installing:
composer global require laravel/installer
Enter fullscreen mode Exit fullscreen mode
  • Check that laravel is installed in this path ~/composer/vendor/bin
cd ~/.composer/vendor/bin
Enter fullscreen mode Exit fullscreen mode

To get the full path and to copy and set it on /etc/paths then we can use pwd on ~/composer/vendor/bin

  • Insert the path on /etc/paths:
sudo vim /etc/paths
Enter fullscreen mode Exit fullscreen mode
# ...
/Users/username/composer/vendor/bin # path inserted
Enter fullscreen mode Exit fullscreen mode

Using laravel new

laravel new test-project
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more