Laravel installeren op een Mac

Run the following command using composer:

composer <span class="token keyword">global</span> <span class="token keyword">require</span> <span class="token string">"laravel/installer"</span>

Put an alias to the freshly installed Laravel installer in your user configuration .bashrc:

nano ~/.bashrc

And place this inside the file:

alias laravel='~/.composer/vendor/bin/laravel'

And run the following to make sure your bashrc profile is reloaded:

source ~/.bashrc

From now on, when you want to create a new Laravel project. All you have to do is run the following command and in just seconds you have a fresh copy of the latest Laravel version in the directory you specify. In this case “project” is the name of the folder where Laravel will be installed to. It’s much faster than using just Composer!

laravel new project