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:
Open a web browser and search for "Laravel Herd" or visit the official website at (link unavailable).
Click on the download button corresponding to your operating system (Windows or macOS).
Click on the download button to start the download process.
Once the download is complete, navigate to the location where the file was saved.
Click on the file to start the installation process.
Follow the installation prompts to complete the installation.
Once installed, you're ready to start developing with Laravel.
Steps to configure and set up a new Laravel project:
- Open a terminal and set the directory where you want to store your Herd project. For example:
cd C:\Users\Herd
This sets the directory to C:\Users\Herd
.
- Run the following command to create a new Laravel project in the specified directory:
laravel new shops
Replace "shops" with your desired project name.
Select a starter kit (if prompted). Laravel offers various HH starter kits to help you get started with your project.
Choose a testing framework (if prompted). You can select either Pest or PHPUnit for testing your application.
Follow the remaining prompts to complete the setup process. This may include setting up dependencies, configuring environment variables, and more.
Once the setup is complete, navigate to your project directory:
cd shops
- 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 .
This command is used to open project in Visual Studio Code editor.
- Start the development server using the following command:
php artisan serve
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)
Fix the Laravel Herd download link please.