Category : laravel-sail

I have a laravel 8 project created with composer. Then I added laravel sail by composer require laravel/sail and then executed command php artisan sail:install. After sail up command, only mysql container was created and everything works well. But now I want to add redis to my docker container. How can I do this? I ..

Read more

I’m working in Laravel 8 with Sail When I create the APP_PORT variable on .env… APP_NAME=Laravel APP_ENV=local APP_KEY= APP_DEBUG=true APP_URL=http://localhost APP_PORT=3000 …and launch the web with sail up I get this error: services.laravel.test.ports contains an invalid type, it should be a number, or an object This is how the docker-compose.yml looks version: ‘3’ services: laravel.test: ..

Read more

I’ve rebooted my system and then run all my containers using the vendor/bin/sail up command, the only one that failed to reload was MySQL. The error is the following : ERROR: for mysql a bytes-like object is required, not ‘str’ Traceback (most recent call last): File "/usr/lib/python3/dist-packages/docker/api/client.py", line 261, in _raise_for_status response.raise_for_status() File "/usr/lib/python3/dist-packages/requests/models.py", line ..

Read more

I have setup a Laravel Sail environment and I am trying to save a webpage as a pdf using puppeteer. I am currently using this package to run puppeteer via laravel – https://packagist.org/packages/spatie/browsershot There requirements section specifies you need to download puppeteer via npm. Laravel Sail has npm setup so I have installed the puppeteer ..

Read more

In my Laravel Sail project I get this error messsage when I try to run this: docker-compose build –no-cache laravel.test The result: Building laravel.test Traceback (most recent call last): File "composeclimain.py", line 67, in main File "composeclimain.py", line 126, in perform_command File "composeclimain.py", line 302, in build File "composeproject.py", line 468, in build File "composeproject.py", ..

Read more