Category : laravel-sail

I’m trying to make a project using Laravel and Sail but I’m getting errors when I’m trying to migrate or do anything related to the project’s database (for example, seeding). More specifically, when using artisan sail migrate or anything related, I’m getting the following errors: When DB_HOST=localhost in my .env file: SQLSTATE[HY000] [2002] No such ..

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). 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 –ignore-platform-reqs ..

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