How to Install Laravel 10 using Laravel Sail
_____
/ ____|
| | __ __ _ _ __ ___ ___ ___ ___
| | |_ |/ _` | '_ ` _ \ / _ \/ __/ __|
| |__| | (_| | | | | | | __/\__ \__ \
\_____|\__,_|_| |_| |_|\___||___/___/
You can install Laravel using Laravel Sail, a lightweight command-line interface for interacting with Laravel's default Docker development environment. Follow the steps below to install Laravel using Sail:
- Install Docker on your system. You can download Docker from the official website: https://www.docker.com/products/docker-desktop
- Open a terminal or command prompt window.
- Navigate to the directory where you want to install Laravel.
- Run the following command to create a new Laravel project using Sail:
- curl -s https://laravel.build/ | bash
- Replace
<project-name>
with the name you want to give to your Laravel project. - Wait for the installation process to complete. Sail will automatically install all the necessary dependencies and packages.
- Once the installation is complete, you can navigate to the project directory using the following command:
cd <project-name> - Run the following command to start the development server:
./vendor/bin/sail up
This will start the Docker containers and the Laravel development server, and you can access your application by going to http://localhost
in your web browser.
That's it! You have successfully installed Laravel using Sail on your system.
AK Newsletter
Join the newsletter to receive the latest updates in your inbox.