> For the complete documentation index, see [llms.txt](https://devsb.gitbook.io/laranotes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devsb.gitbook.io/laranotes/tips/laravel-sail.md).

# Laravel Sail

## Introduction

Laravel Sail is a light-weight command-line interface for interacting with Laravel's default Docker development environment. Sail provides a great starting point for building a Laravel application using PHP, MySQL, and Redis without requiring prior Docker experience.

In this topic, we will talk about PhpMyAdmin Fan. While releasing laravel sail, PHPMyAdmin is not recommended in laravel sail. Some developers are not switched to TablePlus. So, you can add PHPMyAdmin into the laravel sail container. It's not Big Deal!. P.S - DRY.&#x20;

#### 1. Find Docker Compose

In your project root, find and open up `docker-compose.yml` and within the `services` block add the PHPMyAdmin service:

> ```
> phpmyadmin:
>     image: phpmyadmin/phpmyadmin
>     links:
>         - mysql:mysql
>     ports:
>         - 8080:80
>     environment:
>         MYSQL_USERNAME: "${DB_USERNAME}"
>         MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
>         PMA_HOST: mysql
>     networks:
>         - sail
> ```

#### 2. Sail it up

Now go back to the command line and bring back up your Sail container with: `./vendor/bin/sail up`

#### 3. Localhost

In your browser, navigate to `localhost:8080` and PHPMyAdmin should load.

That's all! Hope it's worked. Enjoy your laravel sail.

## Learn More

{% embed url="<https://laravel.com/docs/8.x/sail>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://devsb.gitbook.io/laranotes/tips/laravel-sail.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
