Questions tagged [laravel-sail]
319 questions
5
votes
2 answers
Laravel Sail is shutting down old Sail processes on every sail command
I just started using Laravel Sail (v1.4.7) and if I run this:
sail up -d
Then all container started.
Then I try run this:
sail composer dump-autoload
And the response is:
projectname- docker- Exit 1
Shutting down old…

netdjw
- 5,419
- 21
- 88
- 162
5
votes
2 answers
Unsupported operating system with Docker on windows 10 with wsl2
I installed docker and downloaded an ubuntu distro to run with laravel sail,planing to use swoole php,and made it default,also made wsl version to 2
with docker-compose.yml ready from laravel sail docker-compose.yml:
but every time I try to run…

Ahmed Wagih Refaey
- 63
- 1
- 1
- 9
5
votes
1 answer
Laravel sail: login as root or create an root user
I am using sail and trying to use the shell as root, which is not possible.
Switching to user root asks for a password, which is not know to me.
I tried to change the dockerfile:
ARG WWWROOTGROUP
RUN groupadd --force -g $WWWROOTGROUP sailRoot
RUN…

Benny Alex
- 131
- 2
- 12
5
votes
3 answers
Using Laravel Sail with a separate testing database
I'm using Laravel Sail as my development environment. According to the docs,
when the MySQL container is starting, it will ensure a database exists whose name matches the value of your DB_DATABASE environment variable.
This works perfectly for my…

Erich
- 2,408
- 18
- 40
4
votes
1 answer
Laravel Sail Up never finishes building during GPG command
I'm trying to setup the dev environment for an existing project on another computer under WSL2 and Windows 10. Having installed the project from its own repo with composer install and making sure a basic .env file is in place, I ran /vendor/bin/sail…

Nidonocu
- 12,476
- 7
- 42
- 43
4
votes
0 answers
Laravel & Vite - Error: EACCES: permission denied, open 'public/hot'
Installed a fresh laravel project with sail, tried running npm run dev and get this error returned.
I have tried updating the ownership of the node modules but no luck.
How do I just run dev?
enter image description here

AlexE123
- 41
- 1
4
votes
0 answers
Laravel Sail & platform selection
I am using laravel sail and I have an error when I use wkhtml to load PDF from blade files, I have installed the packages via composer and setup everything by following laravel-snappy instructions, the error goes as follows:
The exit status code…

fake97
- 166
- 2
- 10
4
votes
2 answers
Laravel 8 - SQLSTATE[HY000] [2002] No such file or directory
I'm trying to make a project using Laravel and Sail but I'm getting errors when I'm trying to migrate or do anything related to the project's database (for example, seeding).
More specifically, when using artisan sail migrate or anything related,…

flowz0r
- 121
- 1
- 9
4
votes
4 answers
How To Create A New Database For Each Tenant on Laravel Sail, Docker
I'm developing a multi-tenant app first time by using Laravel 8, Tenancy For Laravel on Docker and WSL2. My issue occures when I try to create a tenant. I want to create a new database for each tenant, but creating database trows the following…

Bulent
- 3,307
- 1
- 14
- 22
4
votes
2 answers
Laravel Sail Failed to Build
I'm struggling to get Laravel Sail working. Following the instructions from the documentation I'm not really understanding why the container is failing to build. I don't have any docker experience.
./vendor/bin/sail php -v
returns "Cannot load…

Wazimshizm
- 73
- 2
- 10
4
votes
2 answers
install wildcard lets encrypt ssl certificate on laravel sail
I created a SaaS app using laravel 8 with first-party package laravel sail (Docker) and tenancy for laravel
package for the SaaS.
I need to install wildcard lets encrypt SSL on the main app and all tenant apps will be on HTTPS.
I tried to install…

Moauya Meghari
- 471
- 2
- 6
- 23
4
votes
2 answers
Laravel truncating table causing error during test
I'm trying to truncate a table, but everytime I try to run it through a test I get a PDOException:
There is no active transaction
I'm using the RefreshDatabase trait.
My code looks like this:
Model::query()->truncate();

Ezrab_
- 825
- 5
- 19
- 44
4
votes
1 answer
Laravel 8 dev project with Laravel Sail and versioning
I'm learning Laravel 8, and I want to set up a quick dev environment using Laravel Sail.
Since we usually don't commit to the vendor directory in Git, how can we run Sail from a fresh Git clone? We can't use "composer install" without it. Does it…

bwarff
- 365
- 3
- 16
3
votes
0 answers
Laravel sail installation problem (The specified path could not be found)
I'm trying to install Sail for Laravel by doing :
composer create-project laravel/laravel myproject
cd myproject
composer require laravel/sail --dev
php artisan sail:install
But I'm getting as Output :
Sail scaffolding installed successfully.
The…

YOUSSEF
- 41
- 4
3
votes
0 answers
404 on assets when using Laravel Vite + Sail
I wanted to try out Sail on my Windows machine, however, after installing Breeze on a brand new installation of Laravel and running sail npm run dev I received a 404 in the browser for http://localhost/css/app.css and http://localhost/js/app.js when…

Lewis L
- 31
- 2