Questions tagged [laravel-sail]
319 questions
8
votes
3 answers
Laravel sail command have no response except sail up and sail down
I have a Laravel sail project but when I type sail command there is no reaction in console.
Only sail up and sail down work fine but other commands like sail shell, sail artisan ***, sail php -v ......donn`t response. No error and no any response.
I…

chii
- 2,111
- 3
- 17
- 21
8
votes
1 answer
Laravel Sail install puppeteer chromium
I have setup a Laravel Sail environment and I am trying to save a webpage as a pdf using puppeteer.
I am currently using this package to run puppeteer via laravel - https://packagist.org/packages/spatie/browsershot
There requirements section…

Lukerayner
- 412
- 6
- 23
7
votes
6 answers
How can I configure Supervisor and scheduling with Laravel Sail?
I'm using Laravel sail. I want to use supervisor and cronjob. But I don't understand how I can configure these things with sail.
I can't find any examples on how to do this.

Morgenstern
- 71
- 2
- 5
7
votes
2 answers
Laravel Sail Database & User not created
I just set up a laravel project with laravel sail and for some reason during build process it doesn't create the given database and user. I am quite confused as to why because I feel like I've configured everything right.
When executing…

cscholz
- 531
- 4
- 10
7
votes
2 answers
Laravel Sail Mysql 8.0 problem on existing project
I've an already created project and I wanted to start using laravel sail for my local development but when I start the containers with sail up --build I have and error in the mysql container with the following complete output:
merkat-db |…

Emerson Nunes
- 386
- 4
- 17
6
votes
4 answers
no such service: laravel.test
I'm a Dockers / Sail beginner and wanted to give it a try with a new Laravel project.
So, when I execute a Laravel fresh install, and i run sail up i get this error:
no such service: laravel.test
However, http://localhost returns the expected…

Alexandru Cristian
- 382
- 5
- 16
6
votes
2 answers
Xdebug:Time-out connecting to debugging client
I am trying to setup xdebug using laravel sail with latest version, on my Ubuntu 20.04.3 LTS desktop,
ie
php 8.1
laravel 9
with below mentioned details to .env file
SAIL_XDEBUG_MODE=develop,debug
SAIL_XDEBUG_CONFIG="client_host=172.23.0.1"
but when…

thomas paulson
- 227
- 2
- 16
6
votes
1 answer
Can i remove sail from laravel?
Recently i was assigned a task to upgrade old laravel project, there is one controller and not more than 20 files in need to migrate with 200 lines of code on them(on average).
Just for this i setup laravel latest 8.1 , but it comes with a lot of…

Madhab452
- 303
- 4
- 13
6
votes
0 answers
How does one add PHP extensions to the docker-compose.yml configuration that comes with Laravel Sail?
I created a new Laravel 8 project, which comes with Laravel Sail, a pre-configured Docker environment. It works well, until I need to use a PHP extension.
The Laravel Sail documentation does not appear to mention anything about PHP extensions, which…

Andrew Koster
- 1,550
- 1
- 21
- 31
6
votes
2 answers
Connection Refused while Runing Laravel Dusk with Laravel Sail
I'm trying to use Laravel Dusk integrated with Laravel Sail as described in: https://laravel.com/docs/8.x/sail#laravel-dusk
I'm facing some problems when it comes to make this work:
If a use, a .env.dusk or .env.dusk.local file and run the tests…

C0lliNN
- 61
- 1
- 2
6
votes
1 answer
Laravel Sail (docker), nginx reverse proxy - Html renders localhost:8002 instead of site.xyz
I started testing the new Laravel Sail docker-compose environment with an nginx reverse proxy so I can access my website from a real tld while developing on my local machine.
My setup is:
OS - Ubuntu Desktop 20 with nginx and docker installed.
Nginx…

Capca
- 61
- 1
- 3
5
votes
2 answers
Install an Older Version of Laravel with Sail
I have a server that is still running PHP 7.4.x
I, therefore, need to install laravel 8.x (the current version of laravel is 9.x) with laravel-sail. Since I don't have PHP running on the laptop I am using for development, I cannot install laravel…

cw24
- 1,613
- 2
- 22
- 31
5
votes
2 answers
Laravel with Sail and Docker, really slow
I tried to run a fresh Laravel 9.2 project with Laravel Sail in Docker. (contains WSL2), and the index page is loaded in 2sec. For an existing project where I tried Sail to run on Docker, it takes ~7sec instead of 0.3 as it takes on Laravel…

Beusebiu
- 1,433
- 4
- 23
- 68
5
votes
0 answers
Laravel Sail Docker - During inheritance of ArrayAccess
Windows 11, Laravel v8.49.0, Docker with WSL 2 using Ubuntu-20.04. (Tried with PHP 7.4.x, 8.0.x and 8.1.x).
Problem:
PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of…

Jaeger
- 1,646
- 8
- 27
- 59
5
votes
3 answers
How to update npm in Laravel Sail
I am currently using Laravel 8.48.2 with the Sail package. I set Sail up and running its image through Docker Desktop while using WSL 2 with a Ubuntu distro on Windows. All seems to be working fine.
After I ran sail npm install, the packages were…

gabys
- 101
- 1
- 2
- 11