One way to test a dev site on other devices on your LAN is to configure a proxy port listener for WSL then build assets and change the port on the Artisan Serve command. Configure WSL First find the IP address WSL is currently using, this may change when it restarts. Set a proxy port […]
Tag: laravel
SQLite Performance & Concurrency Optimizations Configuration For Laravel
The below configures the SQLite WAL (Write-Ahead Logging) mode in Laravel, modify your database configuration to issue the correct PRAGMA commands when the connection opens. Add the lines to the config/database.php file.
Laravel 9 Sail Redis Supervisor Queue Configuration
To add the command to Supervisor for a Redis Queue append the following code to the supervisord.conf file in the appropriate Sail runtimes folder i.e. vendor\laravel\sail\runtimes\8.4 Then run
Laravel Sail and Docker Desktop PHP Version Update
You may run into PHP dependencies errors after updating Composer files with Docker images. In the Laravel docker-compose.yml file update the build/context runtime line to the required PHP version. Example For clarity of the image file name update the build/image line to reflect the new version. Example After updating the above run the command to […]
Beanstalkd and Multiple Laravel Websites
If you have multiple websites on the same server using Beanstalkd for queues you can set unique queue tubes for each site to prevent jobs on the queue being triggered by the other sites. In Laravel, edit the queue config file and change default to something unique like the website name. ‘beanstalkd’ => [ ‘driver’ […]