Set Up Laravel Valet on Mac and Serve Sites with Laravel Valet

In this tutorial you will learn about the Set Up Laravel Valet on Mac and Serve Sites with Laravel Valet and its application with practical example.

In this Set Up Laravel Valet on Mac and Serve Sites with Laravel Valet tutorial I will show you how to set up or configure a Laravel development environment on the Mac and how to run laravel web applications through Laravel Valet mechanism. In this tutorial you will learn to Set Up Laravel Valet on Mac and Serve Sites with Laravel Valet.

Set Up Laravel Valet on Mac and Serve Sites with Laravel Valet

In this step by step tutorial I will guide you through how to Set Up Laravel Valet on Mac and Serve Sites with Laravel Valet. Please follow the instruction given below:

Installing Homebrew in Mac

In this step we will install Homebrew package manager on your development machine.

Configure PHP in Mac

Since Laravel is a PHP framework, so we need to install the latest PHP version using Homebrew.

MySQL Installation

Now we will install MySql using following command.

Lets start the MySQL services using following command.


On MySQL startup the following message will be displayed on your terminal window:

Install Composer on MacOS

Now use the following command to install composer.


The hash file code for composer verfies the installer.


Next, we execute the composer-setup.php file; it helps in installing the Composer package in the existing directory.


Run the following command to configure the composer globally in our development system.


Verify Composer package manager installation.


Here is the similar output you will see on the terminal window.

Install Laravel Valet via Composer

Once installed, the following packages came along with it:


Run the following command to set the following folder with the path:


Now we need to install the Laravel Valet with given below command:

Create Laravel Application with Valet

Get inside the project root:


Run the laravel valet park command:


Create a new Laravel web application inside the same folder:


With the following URL you can check out the laravel application that we installed via Valet.

In this tutorial we have learn about the Set Up Laravel Valet on Mac and Serve Sites with Laravel Valet and its application with practical example. I hope you will like this tutorial.