From 5e2d8720a5d24a193b64f4fca71ca8d51fb67e7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Thu, 16 Mar 2023 22:14:21 +0100 Subject: [PATCH] improve readme --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 088bf17..c3dfc17 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ JobPipeline::make([ })->shouldBeQueued(true) ``` -If you want to push the job to a different queue, you can pass a string as a second parameter: +If you wish to push the job to a different queue, you can pass a string as the second parameter: ```php shouldBeQueued(true, 'another-queue'); ``` +This can be simplified by calling `shouldBeQueued(queue: 'another-queue')` since the first parameter defaults to `true`. + Finally, convert the pipeline to a listener and bind it to an event: ```php