Skip to content

Commit 584d950

Browse files
committed
Update readme for queue changes
1 parent aa2fda3 commit 584d950

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,26 @@ If you want to use Laravel's native Auth functionality, register this included s
247247

248248
This service provider will slightly modify the internal DatabaseReminderRepository to add support for MongoDB based password reminders. If you don't use password reminders, you don't have to register this service provider and everything else should work just fine.
249249

250+
### Queues
251+
252+
If you want to use MongoDB as your database backend, change the default queue driver in `config/queue.php`:
253+
254+
```php
255+
'default' => 'mongodb',
256+
```
257+
258+
And add the following connection:
259+
260+
```php
261+
'connections' => [
262+
'mongodb' => [
263+
'driver' => 'mongodb',
264+
'table' => 'jobs',
265+
'queue' => 'default',
266+
'expire' => 60,
267+
],
268+
```
269+
250270
### Sentry
251271

252272
If you want to use this library with [Sentry](https://cartalyst.com/manual/sentry), then check out https://github.com/jenssegers/Laravel-MongoDB-Sentry

0 commit comments

Comments
 (0)