Category : laravel-sail

I try to set up a MySQL interaction with Laravel, but it gives me a pretty odd error set. When my .env db parameters are set like that: DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=example_app DB_USERNAME=sail DB_PASSWORD=password everything works fine in artisan and CLI section, BUT localhost response to such setting replies with IlluminateDatabaseQueryException SQLSTATE[HY000] [2002] Connection refused ..

Read more

I have Ubuntu 18.04 and a fresh installation of Laravel 8. I want to use Xdebug together with Sail. I followed the instructions as follows: Added SAIL_XDEBUG_MODE=develop,debug to env Run sail build –no-cache and sail up -d Run docker inspect -f {{range.NetworkSettings.Networks}}{{.Gateway}}{{end}} <container-name> to get the IP of my docker container Added SAIL_XDEBUG_CONFIG="client_host=172.19.2.1" to env ..

Read more

kinda losing my faith on stackoverflow but what heck lets give it one more go: Okay, this is the issue: I am running a laravel sail "docker-compose.yml" on an AWS "t2.micro" free tier EC2 Instance and when I spin up the "docker-compose.yml file this is what I get: sudo ./vendor/bin/sail up -d 1 ⚙ Creating ..

Read more

When running sudo APP_PORT=3001 ./vendor/bin/sail up In the terminal I am expecting to see the default laravel splash screen on http://localhost:3001. But instead I see an error message This page isn’t workinglocalhost didn’t send any data. ERR_EMPTY_RESPONSE. I’m running laravel 8 with sail on windows 10 using WSL(ubuntu). I can see both the DB and ..

Read more

I cloned an existing application on a machine with Apple’s M1 processor. Then used following command to bring it (Ref: https://laravel.com/docs/8.x/sail#installing-composer-dependencies-for-existing-projects) docker run –rm -u "$(id -u):$(id -g)" -v $(pwd):/opt -w /opt laravelsail/php74-composer:latest composer install –ignore-platform-reqs Then also tried: docker run –rm –platform linux/amd64 -u "$(id -u):$(id -g)" -v $(pwd):/opt -w /opt laravelsail/php74-composer:latest composer install ..

Read more

I am trying to set up connection to sql server on laravel using Docker via Sail. Here is how I am trying to get the msodbcdriver17 as listed in the installation guide https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver15 && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add – && curl https://packages.microsoft.com/config/ubuntu/21.04/prod.list > /etc/apt/sources.list.d/mssql-release.list && apt-get update && ACCEPT_EULA=Y apt-get install -y msodbcsql17 && ..

Read more

I have the following docker-compose file: # For more information: https://laravel.com/docs/sail version: ‘3’ services: login: build: context: ${LOGIN}/vendor/laravel/sail/runtimes/8.0 dockerfile: Dockerfile args: WWWGROUP: ‘${WWWGROUP}’ image: sail-8.0/app environment: WWWUSER: ‘${WWWUSER}’ LARAVEL_SAIL: 1 XDEBUG_MODE: ‘${SAIL_XDEBUG_MODE:-off}’ XDEBUG_CONFIG: ‘${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}’ volumes: – ‘${LOGIN}:/var/www/html’ networks: – sail depends_on: – mysql companies: build: context: ${COMPANIES}/vendor/laravel/sail/runtimes/8.0 dockerfile: Dockerfile args: WWWGROUP: ‘${WWWGROUP}’ image: sail-8.0/app environment: ..

Read more

This is your docker-compose file to add "Phpmyadmin" you just have to the following commands that I will leave in "answer" For more information: https://laravel.com/docs/sail version: "3" services: laravel.test: build: context: ./vendor/laravel/sail/runtimes/8.0 dockerfile: Dockerfile args: WWWGROUP: "${WWWGROUP}" image: sail-8.0/app ports: – "${APP_PORT:-80}:80" environment: WWWUSER: "${WWWUSER}" LARAVEL_SAIL: 1 volumes: – ".:/var/www/html" networks: – sail depends_on: – ..

Read more

I run larvae 8 sail he work fine my file content is docker-compose.yml # For more information: https://laravel.com/docs/sail version: ‘3’ services: rami.dev: build: context: ./vendor/laravel/sail/runtimes/8.0 dockerfile: Dockerfile args: WWWGROUP: ‘${WWWGROUP}’ image: sail-8.0/app ports: – ‘${APP_PORT:-80}:80’ environment: WWWUSER: ‘${WWWUSER}’ LARAVEL_SAIL: 1 volumes: – ‘.:/var/www/html’ networks: – sail depends_on: – mariadb mariadb: image: ‘mariadb:10’ ports: – ‘${FORWARD_DB_PORT:-3306}:3306’ ..

Read more

I have setup my Laravel application using Laravel Sail (Docker based). Everything’s working fine except the MySQL. MySQL server is behaving differently for web (local.mysite.com:8080) and for CLI (ex: php artisan migrate). Configruation (1) If I use the following configuration in my .env file, … APP_DOMAIN=local.mysite.com … DB_CONNECTION=mysql DB_HOST=mysql DB_PORT=3306 DB_DATABASE=mydb DB_USERNAME=root DB_PASSWORD=root FORWARD_DB_PORT=3307 the ..

Read more

I created a laravel sail project with PostgreSQL then I tried to connect with the server I got this error message FATAL: password authentication failed for user "sail" This is my docker-compose.yml pgsql: image: ‘postgres:13’ ports: – ‘${FORWARD_DB_PORT:-5432}:5432’ environment: PGPASSWORD: ‘${DB_PASSWORD:-secret}’ POSTGRES_DB: ‘${DB_DATABASE}’ POSTGRES_USER: ‘${DB_USERNAME}’ POSTGRES_PASSWORD: ‘${DB_PASSWORD:-secret}’ volumes: – ‘sailpgsql:/var/lib/postgresql/data’ networks: – sail healthcheck: test: ..

Read more

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 is a significant problem. Any non-trivial PHP site has to use several PHP extensions. ..

Read more

I’m using Laravel 8.x with Sail using PHP 8.0, recently, I actually messed up my compose.json file resulting in issues with the vendor, trying to recreate the project from scratch, I deleted the vendor folder. Normally, docker-compose would build and create the /path/to/project/vendor/laravel/sail/runtimes/ directory with its appropriate content, but for some reason, I keep getting ..

Read more

I am trying to start laravel sail on Mac M1. I was able to resolve mysql version issue. Now when I run .vendor/bin/sail up command it get stuck at [4/12] RUN apt-get update && apt-get install -y gnupg gosu curl. These are last commands before the error apperas #8 133.9 Fetched 25.3 MB in 10s ..

Read more

I’m using laravel sail and trying to create another database for my Laravel project which required to use multiple databases connections, I’ve tried to create from user root with empty password and sail with password password but go access denied. tried command line to run docker-compose exec -u 0 "mariadb" mysql -usail -ppassword -e ‘create ..

Read more

My application was running smoothly until i installed laravel octane following the documentation and then localhost has refused to work. I have my installation running on the docker installation for windows. Below is my docker-compose.yml file # For more information: https://laravel.com/docs/sail version: ‘3’ services: laravel.test: build: context: ./docker/8.0 dockerfile: Dockerfile args: WWWGROUP: ‘${WWWGROUP}’ image: sail-8.0/app ..

Read more

I am attempting to setup a basic project in Laravel using Laravel Sail. According to the official Laravel documentation the following commands will create a new Laravel application called "example-app" and start Laravel Sail. curl -s "https://laravel.build/example-app" | bash cd example-app ./vendor/bin/sail up However, after running these commands I see the following error message: ERROR: ..

Read more

I have 3 Vuejs SPAs which use the same Laravel API setup using Sail/Selenium/Docker. I want to test each SPA from the API using Dusk but whenever I try to visit localhost with the port (http://localhost:9007) I get the following error: FacebookWebDriverExceptionUnknownErrorException: unknown error: net::ERR_CONNECTION_REFUSED I don’t get the error with http://google.com or just using ..

Read more