You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-7Lines changed: 23 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,11 @@ Setup connection in `config/queue.php`
25
25
26
26
'driver' => 'rabbitmq',
27
27
28
+
/*
29
+
* Set to "horizon" if you wish to use Laravel Horizon.
30
+
*/
31
+
'worker' => env('RABBITMQ_WORKER', 'default'),
32
+
28
33
'dsn' => env('RABBITMQ_DSN', null),
29
34
30
35
/*
@@ -120,16 +125,22 @@ Setup connection in `config/queue.php`
120
125
],
121
126
```
122
127
128
+
## Laravel Usage
129
+
130
+
Once you completed the configuration you can use Laravel Queue API. If you used other queue drivers you do not need to change anything else. If you do not know how to use Queue API, please refer to the official Laravel documentation: http://laravel.com/docs/queues
131
+
132
+
## Laravel Horizon Usage
133
+
134
+
This package supports [Laravel Horizon](http://horizon.laravel.com) out of the box. Firstly, install Horizon and then set `RABBITMQ_WORKER` to `horizon`.
135
+
123
136
## Lumen Usage
124
137
125
-
For lumen usage the service provider should be registered manually as follow in bootstrap/app.php
126
-
```
138
+
For Lumen usage the service provider should be registered manually as follow in `bootstrap/app.php`:
Once you completed the configuration you can use Laravel Queue API. If you used other queue drivers you do not need to change anything else. If you do not know how to use Queue API, please refer to the official Laravel documentation: http://laravel.com/docs/queues
133
144
134
145
## Using other AMQP transports
135
146
@@ -157,10 +168,15 @@ Change the factory class in `config/queue.php`:
0 commit comments