Skip to main content
This document provides a detailed guide to installing and setting up Laravel Sail with additional custom configurations for a robust development environment.

Publish Sail configuration files

Folder Structure

Setup Sail

Select your preferred PHP Version in docker directory and add this shell scripts inside the php version directory you choose.
run_turso
And modify the Dockerfile. Make sure to replace <version> placeholder in this file.
docker/<version>/Dockerfile
Then modify the docker-compose.yml as you need. Make sure to replace <version> placeholder in this file.
docker-compose.yml
Note: Make sure you have extensions directory in your root directory, because the directory will mount into docker volume ./extensions:/opt/extensions so you can get LibSQL Class autocomplition from libsql_stubs.php when you working in your favorite IDE or Text Editor.

Build

Let’s sailing!