From 4782734ed41c39d0f1b77130ed479b3599dae927 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Sat, 23 May 2026 12:31:38 +0200 Subject: [PATCH] Fix dead QUEUE_DRIVER env var name in templates and test config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `config/queue.php` reads `env('QUEUE_CONNECTION', 'sync')` since the Laravel Shift in v6.0.0 (commit cc3c59bf97), but seven .env templates and phpunit.xml still set `QUEUE_DRIVER` — the old Laravel <5.7 name that the framework no longer reads. The default is `sync` anyway so the gap is silent; but anyone copying these templates and trying to enable an async driver (redis, database, beanstalkd, sqs) finds their setting silently ignored. Rename across: - .env.example - .env.docker - .env.dev.docker - .env.dusk.example - docker/docker-secrets.env - docker/docker.env - phpunit.xml (XML tag) No code change. Default value `sync` preserved everywhere. --- Disclosure: drafted with a coding agent's help. Signed-off-by: Sebastian Mendel --- .env.dev.docker | 2 +- .env.docker | 2 +- .env.dusk.example | 2 +- .env.example | 2 +- docker/docker-secrets.env | 2 +- docker/docker.env | 2 +- phpunit.xml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.env.dev.docker b/.env.dev.docker index dbf8451671..5c12bfb990 100644 --- a/.env.dev.docker +++ b/.env.dev.docker @@ -113,7 +113,7 @@ ENABLE_HSTS=false # -------------------------------------------- CACHE_DRIVER=file SESSION_DRIVER=file -QUEUE_DRIVER=sync +QUEUE_CONNECTION=sync CACHE_PREFIX=snipeit # -------------------------------------------- diff --git a/.env.docker b/.env.docker index b0867fd0bb..2ebcf99694 100644 --- a/.env.docker +++ b/.env.docker @@ -120,7 +120,7 @@ ENABLE_HSTS=false # -------------------------------------------- CACHE_DRIVER=file SESSION_DRIVER=file -QUEUE_DRIVER=sync +QUEUE_CONNECTION=sync CACHE_PREFIX=snipeit # -------------------------------------------- diff --git a/.env.dusk.example b/.env.dusk.example index e306a06cf8..4f870008d6 100644 --- a/.env.dusk.example +++ b/.env.dusk.example @@ -72,7 +72,7 @@ CORS_ALLOWED_ORIGINS="*" # -------------------------------------------- CACHE_DRIVER=file SESSION_DRIVER=file -QUEUE_DRIVER=sync +QUEUE_CONNECTION=sync # -------------------------------------------- # OPTIONAL: LOGIN THROTTLING diff --git a/.env.example b/.env.example index 05f95abef6..75ac7fe3d0 100644 --- a/.env.example +++ b/.env.example @@ -142,7 +142,7 @@ ENABLE_HSTS=false # OPTIONAL: CACHE SETTINGS # -------------------------------------------- CACHE_DRIVER=file -QUEUE_DRIVER=sync +QUEUE_CONNECTION=sync CACHE_PREFIX=snipeit # -------------------------------------------- diff --git a/docker/docker-secrets.env b/docker/docker-secrets.env index f18ee202bc..a053fbfc43 100644 --- a/docker/docker-secrets.env +++ b/docker/docker-secrets.env @@ -51,4 +51,4 @@ SECURE_COOKIES=false # -------------------------------------------- CACHE_DRIVER=file SESSION_DRIVER=file -QUEUE_DRIVER=sync +QUEUE_CONNECTION=sync diff --git a/docker/docker.env b/docker/docker.env index 785da07ee1..cfdd73fb6a 100644 --- a/docker/docker.env +++ b/docker/docker.env @@ -60,4 +60,4 @@ SECURE_COOKIES=false # -------------------------------------------- CACHE_DRIVER=file SESSION_DRIVER=file -QUEUE_DRIVER=sync +QUEUE_CONNECTION=sync diff --git a/phpunit.xml b/phpunit.xml index 30a78b7a63..e21799cb72 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -23,7 +23,7 @@ - +