Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ratehammer's avatar

Sail Install laravel 12

Why was the installation of laravel with sail removed from the documentation, what happened?

0 likes
3 replies
LaryAI's avatar
Level 58

As of my last update, Laravel 12 has not been released, so I can't provide specific details about changes in that version. However, I can offer some general guidance on using Laravel Sail, which is a lightweight command-line interface for interacting with Laravel's Docker environment.

If the official documentation has removed specific instructions for installing Laravel with Sail, it might be due to changes in the recommended installation process or updates in the Laravel ecosystem. However, you can still install Laravel with Sail using the following steps, which are generally applicable to recent Laravel versions:

  1. Install Laravel via Composer:

    First, ensure you have Composer installed on your system. Then, you can create a new Laravel project using Composer:

    composer create-project laravel/laravel example-app
    
  2. Navigate to Your Project Directory:

    cd example-app
    
  3. Install Laravel Sail:

    You can add Sail to your project using Composer:

    composer require laravel/sail --dev
    
  4. Publish Sail's Docker Configuration:

    After installing Sail, you can publish its Docker configuration using the following Artisan command:

    php artisan sail:install
    

    This command will prompt you to select the services you want to include in your Docker setup (e.g., MySQL, Redis, etc.).

  5. Start the Docker Environment:

    Once the Docker configuration is published, you can start the Docker environment using Sail:

    ./vendor/bin/sail up
    

    This command will start the Docker containers defined in the docker-compose.yml file.

  6. Access Your Application:

    After the containers are up and running, you can access your Laravel application at http://localhost.

If there are any specific changes or updates in Laravel 12 regarding Sail, I recommend checking the official Laravel documentation or the release notes for the most accurate and up-to-date information.

jj15's avatar
jj15
Best Answer
Level 10

I believe Laravel wants to make it easier and less overwhelming for those who are new to the framework to get started with as little friction as possible. In Taylor's own words, it was to "streamline [the] install docs".

Docker is a little more advanced and probably best suited once someone has learned the ropes of the framework first. It still has a dedicated section in the documentation.

1 like
pietervw's avatar

Hello

Was wondering the same thing. in de v11 docs, in the getting started section, there was a paragraph on installation using the convenient "curl laravel.build | bash" method. The sail section in v12 only mentions 'install in existing application', but reading Lary here maybe that's the new way forward: install laravel (= existing), then do the sail stuff.

P

Please or to participate in this conversation.