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 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

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 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