Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-mongodb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
laravel-mongodb
Commits
5cda0ce3
Commit
5cda0ce3
authored
May 01, 2020
by
Alisson Pereira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds specific lumen queue config description
parent
18989475
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
README.md
README.md
+19
-7
No files found.
README.md
View file @
5cda0ce3
...
...
@@ -42,6 +42,8 @@ This package adds functionalities to the Eloquent model and Query builder for Mo
-
[
Cross-Database Relationships
](
#cross-database-relationships
)
-
[
Authentication
](
#authentication
)
-
[
Queues
](
#queues
)
-
[
Laravel specific
](
#laravel-specific
)
-
[
Lumen specific
](
#Lumen-specific
)
-
[
Upgrading
](
#upgrading
)
-
[
Upgrading from version 2 to 3
](
#upgrading-from-version-2-to-3
)
...
...
@@ -1067,6 +1069,8 @@ If you want to use MongoDB as your database backend, change the driver in `confi
'connections'
=>
[
'database'
=>
[
'driver'
=>
'mongodb'
,
// You can also specify your jobs specific database created on config/database.php
'connection'
=>
'mongodb-job'
,
'table'
=>
'jobs'
,
'queue'
=>
'default'
,
'expire'
=>
60
,
...
...
@@ -1078,23 +1082,31 @@ If you want to use MongoDB to handle failed jobs, change the database in `config
```
php
'failed'
=>
[
'driver'
=>
env
(
'QUEUE_FAILED_DRIVER'
,
'database'
),
'database'
=>
env
(
'DB_CONNECTION'
,
'mongodb'
),
'driver'
=>
'mongodb'
,
// You can also specify your jobs specific database created on config/database.php
'database'
=>
'mongodb-job'
,
'table'
=>
'failed_jobs'
,
],
```
Or simply set your own
`QUEUE_FAILED_DRIVER`
environment variable to
`mongodb`
```
env
QUEUE_FAILED_DRIVER=mongodb
```
#### Laravel specific
Last, a
dd the service provider in
`config/app.php`
:
A
dd the service provider in
`config/app.php`
:
```
php
Jenssegers\Mongodb\MongodbQueueServiceProvider
::
class
,
```
#### Lumen specific
With
[
Lumen
](
http://lumen.laravel.com
)
, add the service provider in
`bootstrap/app.php`
. You must however ensure that you add the following
**after**
the
`MongodbServiceProvider`
registration.
```
php
$app
->
make
(
'queue'
);
$app
->
register
(
Jenssegers\Mongodb\MongodbQueueServiceProvider
::
class
);
```
Upgrading
---------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment