Questions tagged [laravel-sail]

319 questions
0
votes
0 answers

Laravel Sail connection refused with MySQL on localhost

When I try to access via Laravel Sail in my local environment using Tinker, I get this error from MySQL: SQLSTATE[HY000] [2002] Connection refused (SQL: select count(*) as aggregate from users... Same thing (with an error) if I try to use MySQL…
0
votes
1 answer

Docker/Laravel Sail - Permission denied when setting up test databases

My setup: Computer: Macbook Pro: 13.2.1 (22D68) Laravel Version: 9 Docker Version: 4.16.2 (95914) Problem: I'm trying to set up a docker-compose configuration to create two testing databases on my Laravel Sail app. From my research, I've…
Daniel Haven
  • 156
  • 1
  • 12
0
votes
0 answers

Migrating from Homestead to Sail - understanding docker development v vagrant

Hi After some issues with Vagrant I'm trying out a switch to Docker and using Sail but struggling with quite a few concepts that I can't seem to find the answers to (or get my head around). I have a working project that I've been building on a local…
Ray
  • 3,018
  • 8
  • 50
  • 91
0
votes
1 answer

Laravel Minio Temporary URL

I'm looking for a hacky way to create temporary URLs with Minio I see on the Laravel docs it says: Generating temporary storage URLs via the temporaryUrl method is not supported when using MinIO. However from some digging I noticed that I can upload…
0
votes
0 answers

Laravel Sail + Doppler, getting error because I don't have a .env file, how do you configure Laravel Sail with Doppler?

I am trying to setup laravel sail on an existing project for experimental reasons. Currently I use doppler to manage my environment variables across multiple environments (local, develop, staging, etc...). With that in mind, is there a way to get…
Kevin Pimentel
  • 2,056
  • 3
  • 22
  • 50
0
votes
1 answer

how to add a new container in laravel sail?

I'm using laravel sail to developing some webapp, but I want to make the laravel as the backend apis, while I want to make a new container for the frontend using react. (I may also want to add a new container for another laravel backend as a new…
0
votes
1 answer

Can not show tables in sequel pro while they do exist according to docker container

I'm rather new at docker and i am currently having some trouble with my new laravel project I started a new laravel project using laravel sail, which created a mysql container called organiser_mysql_1 I am able to view my database in my docker…
rsax
  • 1
  • 1
0
votes
0 answers

Docker tmpfs removes all data when containers are down

I added tmpfs to my docker-compose.yml file in Laravel, and whenever a run "sail up" command, my databases start empty. Is there anyway to avoid that and keep my databases with tables and data. My docker file is: version: '3' services: …
Bulent
  • 3,307
  • 1
  • 14
  • 22
0
votes
1 answer

Laravel 9 sail php migrate returns MySQL 2002 error

I have another MySQL 5.7 container. I wanted the MySQL 8 that comes with Laravel 9 to use port 3308 instead of 3306 so I have this…
SaidbakR
  • 13,303
  • 20
  • 101
  • 195
0
votes
1 answer

Install Imagick in Laravel Sail (Docker)

I am trying to install Imagick PHP Extension in Laravel Sail but I am failing to do so. Details: Laravel 9 PHP 8.2 In the Dockerfile (in directory docker/8.2) I added this snippet to the script: RUN apt-get update; \ # Imagick extension apt-get…
riom
  • 61
  • 2
0
votes
1 answer

Bash: what delimiter to use for this string to array conversion to work? (Laravel/dotenv/Sail/Docker Compose)

Laravel Sail should support multiple docker-compose files by configuring them in a dotenv file (.env). The line in my .env file... SAIL_FILES='docker-compose.yml:docker-compose-arm.yml' The part of Sail that handles multiple sail files (I…
Mike
  • 61
  • 1
  • 6
0
votes
0 answers

node:internal/errors:484 ErrorCaptureStackTrace(err);

When i run vendor/bin/sail npm run dev i got this error. Can anyone explain why that is happening ? i am setting up aws server for my laravel website LARAVEL v9.46.0 plugin v0.7.3 ➜ APP_URL: http://localhost node:internal/errors:484 …
0
votes
1 answer

Laravel docker either artisan or model display connection refused

The application is hosted in a docker container locally on my machine as I am working on the app. The php artisan migrate command is working fine. The problem occurs when I try to load the content onto a web page using any of the Models. Explanation…
sheikhamir
  • 17
  • 4
0
votes
0 answers

How to make Laravel (Sail) handle requests asynchronously

I have been having this issue on multiple devices, with both Sail and artisan serve: I have a basic controller like this:
sharf
  • 2,123
  • 4
  • 24
  • 47
0
votes
0 answers

Error installing npm dependency in Laravel 8 Sail: Conflicting peer dependency: postcss

I have a laravel 8 project that I need to make changes to. I installed laravel sail to start it but I get an error trying to install npm packages: sail npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While…
blacky99
  • 115
  • 1
  • 12