What is Laravel Sail?

Laravel Sail is a simple command-line interface for working with Laravel’s default Docker environment. Without prior Docker experience, Sail is a wonderful starting point for constructing a Laravel application with PHP, MySQL, and Redis.

Additionally, the sail script and the docker-compose.yml file are located at the root of your project. Also, sail script provides a command-line interface (CLI) with easy-to-use methods for communicating with Docker containers defined in the docker-compose.yml file.

While Sail allows us to choose the services we want to use when starting a new Laravel application, it comes with three core components by default: PHP, MySQL, and Redis. The entire setup revolves around two files:

  1. Docker-compose.yml – located at the project’s root after a fresh installation.
  2. Sail script – found under vendor/bin.

Leave a Comment

Your email address will not be published. Required fields are marked *