Questions tagged [laravel-sail]
319 questions
0
votes
1 answer
Laravel Sail Refusing MySQL connection
There are no less than 1,000 threads on the interwebs about Laravel Sail and getting the "SQLSTATE[HY000] [2002] Connection refused" error. I have tried just about every relevant suggestion and after spending about 45 hours on this, cannot get…

WhiskeyMike
- 23
- 1
- 4
0
votes
0 answers
How do I install a specific release of node and NPM on Laravel Sail?
My Dockerfile fails to build when I try to install a specific version of node and npm.
I followed the option 3 in this guide: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04
But it causes an error on RUN…

ephraim lambarte
- 121
- 1
- 11
0
votes
1 answer
Start SSH daemon in Laravel sail
I'm using Laravel Sail and have published the Dockerfile (so I can edit it manually). The reason being that I need to use an OpenSSH server on the container itself for a program I'm using.
I am able to install OpenSSH by adding && apt-get install -y…

Matthew Knill
- 252
- 2
- 7
0
votes
1 answer
Laravel Sail Set MySQL Data Configuration Setting
I'm using Laravel Sail with MySQL. We have triggers on our database and I need to be able to set log_bin_trust_function_creators = 1 in the configuration. For the life of me, I can't figure out set this automatically when the container is created.

Scott Keck-Warren
- 1,894
- 3
- 18
- 33
0
votes
1 answer
How to get rid of files which end in .Identifier in Laravel
I cloned a laravel-8 sail project via gitlab but everywhere in every folder which containing files there is a file which ends in .Identifier
I don't know where they come from. There may be 1000 files like this in the project.
My question is:
How…

Mohsen
- 260
- 3
- 14
0
votes
1 answer
testing PayPal IPN using beyondcode/expose to use a designated port - how to
I am using docker, and attempting to
sail share
so i can get a tunnel to my local computer to test PayPal IPN. When i Share to get that tunnel i get
sail share
Thank you for using expose.
Local-URL: host.docker.internal:80
Dashboard-URL: …

Robert Bryan Davis
- 183
- 2
- 12
0
votes
1 answer
Laravel Sail Share gives 404 or ERR_CONNECTION_REFUSED
Trying to use the Sail Share command with Laravel Sail, but it's not working. I've tried removing the beyondcodegmbh/expose-server image as recommended here.
It installs and everything seems to be working fine. I can get to the expose dashboard…

hyphen
- 2,368
- 5
- 28
- 59
0
votes
0 answers
Problem with installing MSSQL driver on sail
I want to install SQL server driver for php on laravel sail, after building containers Docker cannot install sql server driver. I'm getting trying to access array offset error ..
docker-compose.yml
version: '3'
services:
laravel.test:
…

Mahdi Alikhani
- 121
- 1
- 3
- 13
0
votes
0 answers
How to invoke feature tests from command in Laravel/Sail
I have a command to generate documentation but it depends on caching some data from our feature tests. I can run feature tests simply with this command:
sail test --filter Feature
When I try to invoke this from inside my command:
sail…

Joel Joel Binks
- 1,628
- 5
- 27
- 47
0
votes
1 answer
laravel 8.x - sail - for mysql a bytes-like object is required, not 'str'
when running laravel 8.x sail on WSL2 in a Win10 env i ran into the above error and wanted to document the simple solution as i could not find any relevant issues reported by other on the subject on here or laracasts discussion forum
full error…

Liam O'Toole
- 167
- 3
- 13
0
votes
2 answers
Build the complete Tailwind 3 app.css file using Laravel Mix in Docker container
I have set up Laravel in a Docker container and launched it using Laravel Sail. I'm using Laravel mix with tailwind version 3 to include my CSS. The issue is that I want the entire Tailwind CSS to be compiled into my resources/css/app.css…

Udo E.
- 2,665
- 2
- 21
- 33
0
votes
2 answers
How do I connect Laravel Sail to a MySQL GUI?
I am using Laravel Sail/ Docker for the first time. I have got my site running fine but the issue is that I cannot access the DB via a GUI (Sequel Pro). I have added the default credentials from my env but cannot access. But seem to be able to run…

peco60052
- 29
- 6
0
votes
2 answers
Connect to laravel sail mysql from macOS local machine
I have installed a fresh Laravel 8 Project using sail
https://laravel.com/docs/8.x/installation#getting-started-on-macos
I followed the guide. First ran this
curl -s "https://laravel.build/example-app" | bash
Then this
./vendor/bin/sail up
But now…
0
votes
2 answers
Laravel sail endpoints take a long time
I have an api which we update to laravel 8 to be able to use laravel sail, I mean to have it in docker, but when using the api endpoints, when it is up in docker, they take an average of 30 seconds each endpoint, I attach one image:
I also attach…

Tprogramer
- 85
- 1
- 14
0
votes
0 answers
Set up SSL certificate for local laravel project
We have a project at work that consists of two Laravel apps, one for the backend and one for the frontend. A bit ago we forced https and I have been unable to get the apps to work since then. I've tried to ask for help but I have no experience…