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
An Eloquent model and Query builder with support for MongoDB, using the original Laravel API. *This library extends the original Laravel classes, so it uses exactly the same methods.*
7
7
@@ -15,7 +15,6 @@ Table of contents
15
15
*[Query Builder](#query-builder)
16
16
*[Schema](#schema)
17
17
*[Extensions](#extensions)
18
-
*[Troubleshooting](#troubleshooting)
19
18
*[Examples](#examples)
20
19
21
20
Installation
@@ -154,8 +153,8 @@ You can connect to multiple servers or replica sets with the following configura
You can also pass all the parameters specified in the MongoDB docs [here](https://docs.mongodb.com/manual/reference/method/db.collection.createIndex/#options-for-all-index-types) in the `$options` parameter. For example:
All other (unsupported) operations are implemented as dummy pass-through methods, because MongoDB does not use a predefined schema. Read more about the schema builder on http://laravel.com/docs/schema
277
+
All other (unsupported) operations are implemented as dummy pass-through methods, because MongoDB does not use a predefined schema. Read more about the schema builder on https://laravel.com/docs/6.0/migrations#tables
268
278
269
279
### Geospatial indexes
270
280
@@ -313,6 +323,7 @@ If you want to use MongoDB as your database backend, change the driver in `confi
313
323
'queue' => 'default',
314
324
'expire' => 60,
315
325
],
326
+
]
316
327
```
317
328
318
329
If you want to use MongoDB to handle failed jobs, change the database in `config/queue.php`:
@@ -321,7 +332,7 @@ If you want to use MongoDB to handle failed jobs, change the database in `config
@@ -694,7 +705,7 @@ For more information about model manipulation, check http://laravel.com/docs/elo
694
705
695
706
### Dates
696
707
697
-
Eloquent allows you to work with Carbon/DateTime objects instead of MongoDate objects. Internally, these dates will be converted to MongoDate objects when saved to the database. If you wish to use this functionality on non-default date fields, you will need to manually specify them as described here: http://laravel.com/docs/eloquent#date-mutators
708
+
Eloquent allows you to work with Carbon/DateTime objects instead of MongoDate objects. Internally, these dates will be converted to MongoDate objects when saved to the database. If you wish to use this functionality on non-default date fields, you will need to manually specify them as described here: https://laravel.com/docs/5.0/eloquent#date-mutators
698
709
699
710
Example:
700
711
@@ -771,7 +782,7 @@ class User extends Eloquent {
771
782
```
772
783
773
784
774
-
Other relations are not yet supported, but may be added in the future. Read more about these relations on http://laravel.com/docs/eloquent#relationships
785
+
Other relations are not yet supported, but may be added in the future. Read more about these relations on https://laravel.com/docs/master/eloquent-relationships
0 commit comments