DEV Community

Ghulam Mujtaba
Ghulam Mujtaba

Posted on

Laravel Herd Installation

Intro to laravel

Laravel Herd is a fast and native development environment for Windows and macOS, specifically designed for Laravel and PHP development.

Steps to download and install Laravel Herd:

  1. Open a web browser and search for "Laravel Herd" or visit the official website at (link unavailable).

  2. Click on the download button corresponding to your operating system (Windows or macOS).

  3. Click on the download button to start the download process.

  4. Once the download is complete, navigate to the location where the file was saved.

  5. Click on the file to start the installation process.

  6. Follow the installation prompts to complete the installation.

  7. Once installed, you're ready to start developing with Laravel.

Steps to configure and set up a new Laravel project:

  1. Open a terminal and set the directory where you want to store your Herd project. For example:
cd C:\Users\Herd
Enter fullscreen mode Exit fullscreen mode

This sets the directory to C:\Users\Herd.

  1. Run the following command to create a new Laravel project in the specified directory:
laravel new shops
Enter fullscreen mode Exit fullscreen mode

Replace "shops" with your desired project name.

  1. Select a starter kit (if prompted). Laravel offers various HH starter kits to help you get started with your project.

  2. Choose a testing framework (if prompted). You can select either Pest or PHPUnit for testing your application.

  3. Follow the remaining prompts to complete the setup process. This may include setting up dependencies, configuring environment variables, and more.

  4. Once the setup is complete, navigate to your project directory:

cd shops
Enter fullscreen mode Exit fullscreen mode
  1. To open the project in code editor of your own choice write the name of editor in terminal, add a blank space and full stop then hit Enter key to open project code like.
code .
Enter fullscreen mode Exit fullscreen mode

This command is used to open project in Visual Studio Code editor.

  1. Start the development server using the following command:
php artisan serve
Enter fullscreen mode Exit fullscreen mode


This will start the Laravel development server, and we can access cour project in a web browser at http://shops.test/.

I hope that you have clearly understood it

Top comments (1)

Collapse
 
zubairmohsin33 profile image
Zubair Mohsin

Fix the Laravel Herd download link please.