Skip to content

Commit 57f1c68

Browse files
authored
Update README.md
1 parent 96593a0 commit 57f1c68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,15 @@ The default connection name is `cmq`
8585
```php
8686
//use queue only
8787
Job::dispatch()->onConnection('connection-name')->onQueue('queue-name');
88+
// or dispatch((new Job())->onConnection('connection-name')->onQueue('queue-name'))
8889

8990
//use topic and tag filter
9091
Job::dispatch()->onConnection('connection-name')->onQueue('tag1,tag2,tag3');
92+
// or dispatch((new Job())->onConnection('connection-name')->onQueue('tag1,tag2,tag3'))
9193

9294
//use topic and routing filter
9395
Job::dispatch()->onConnection('connection-name')->onQueue('routing-key');
96+
// or dispatch((new Job())->onConnection('connection-name')->onQueue('routing-key'))
9497
```
9598

9699
#### Multiple Queues

0 commit comments

Comments
 (0)