Skip to content

Commit ca61014

Browse files
committed
Fixed the failed configuration (mongodb#1830)
1 parent 3db27a2 commit ca61014

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,11 +1054,17 @@ If you want to use MongoDB to handle failed jobs, change the database in `config
10541054

10551055
```php
10561056
'failed' => [
1057-
'database' => 'mongodb',
1057+
'driver' => env('QUEUE_FAILED_DRIVER', 'database'),
1058+
'database' => env('DB_CONNECTION', 'mongodb'),
10581059
'table' => 'failed_jobs',
10591060
],
10601061
```
10611062

1063+
Or simply set your own `QUEUE_FAILED_DRIVER` environment variable to `mongodb`
1064+
```env
1065+
QUEUE_FAILED_DRIVER=mongodb
1066+
```
1067+
10621068
Last, add the service provider in `config/app.php`:
10631069

10641070
```php

0 commit comments

Comments
 (0)