Category : wsl-2

This happened to me a couple of times now on windows wsl2. I have an existing project using laravel sail that works on my mac but when I try to make it work on windows running the installation for an existing project https://laravel.com/docs/8.x/sail#installing-composer-dependencies-for-existing-projects I haven’t found a solution adapted to laravel sail yet. ./vendor/bin/sail up ..

Read more

I’m trying to connect my laravel project that is running on wsl2 ubuntu to mysql server (with xampp) running on windows 10. .env file configs DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=test DB_USERNAME=root DB_PASSWORD= when I run a php artisan migrate it gives this error IlluminateDatabaseQueryException : SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from ..

Read more

After successfully making WSL2 work with Docker Desktop (v3.1.0) NAME STATE VERSION * Ubuntu-20.04 Running 2 docker-desktop Running 2 docker-desktop-data Running 2 I followed steps from the Laravel Docs: https://laravel.com/docs/8.x#getting-started-on-windows but the error: [ErrorException] file_get_contents(): Read of 8192 bytes failed with errno=13 Permission denied showed up, and i couldn’t find the docker-compose.yml file in the ..

Read more

I’ve been developing for Laravel using Homestead (VirtualBox and Vagrant) on Windows 10. Recently I wanted to switch to Docker and the Linux Sub System on Windows (WSL2). Under Homestead I’ve been running my app under my-domain.test. In my docker-compose file I use localhost on port 8008. I can access the website under localhost:8008 but ..

Read more