Setup Laravel Sail for an existing Laravel application
Constantin Druc ยท 15 Jun, 2021
[00:00] Here I have a regular no-sail Laravel application. To set up this app using Sail we'll first need to require the laravel sail package.
[00:12] We can do that with composer require laravel/sail --dev
, then we'll need to publish the sail docker-compose.yml
file using php artisan sail:install
. Here you'll be asked to pick the services you want to install, and I'll go with mysql, redis, meilisearch, mailhog, and selenium.
[00:43] Finally we can do sail up -d
and we are ready to go.
-
1Setup a new project using Laravel Sail (macOS)02:33
-
2Executing commands inside your application containers02:20
-
3Creating a database client connection01:30
-
4Testing emails with Mailhog02:35
-
5Changing the php version in Laravel Sail01:29
-
6Run Sail and Valet in parallel01:39
-
7Customizing Laravel Sail01:25
-
Setup Laravel Sail for an existing Laravel application00:49
-
1Setup a new project using Laravel Sail (macOS)02:33
-
2Executing commands inside your application containers02:20
-
3Creating a database client connection01:30
-
4Testing emails with Mailhog02:35
-
5Changing the php version in Laravel Sail01:29
-
6Run Sail and Valet in parallel01:39
-
7Customizing Laravel Sail01:25
-
Setup Laravel Sail for an existing Laravel application00:49