Skip to content

Commit 87880c0

Browse files
authored
Merge pull request #1827 from Smolevich/change-readme
Change readme
2 parents c0ca8ab + ffa5d14 commit 87880c0

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Laravel MongoDB
22
===============
33

4-
[![Latest Stable Version](http://img.shields.io/github/release/jenssegers/laravel-mongodb.svg)](https://packagist.org/packages/jenssegers/mongodb) [![Total Downloads](http://img.shields.io/packagist/dm/jenssegers/mongodb.svg)](https://packagist.org/packages/jenssegers/mongodb) [![Build Status](http://img.shields.io/travis/jenssegers/laravel-mongodb.svg)](https://travis-ci.org/jenssegers/laravel-mongodb) [![Coverage Status](http://img.shields.io/coveralls/jenssegers/laravel-mongodb.svg)](https://coveralls.io/r/jenssegers/laravel-mongodb?branch=master) [![Donate](https://img.shields.io/badge/donate-paypal-blue.svg)](https://www.paypal.me/jenssegers)
4+
[![Latest Stable Version](http://img.shields.io/github/release/jenssegers/laravel-mongodb.svg)](https://packagist.org/packages/jenssegers/mongodb) [![Total Downloads](http://img.shields.io/packagist/dm/jenssegers/mongodb.svg)](https://packagist.org/packages/jenssegers/mongodb) [![Build Status](http://img.shields.io/travis/jenssegers/laravel-mongodb.svg)](https://travis-ci.org/jenssegers/laravel-mongodb) [![Coverage Status](https://coveralls.io/repos/github/jenssegers/laravel-mongodb/badge.svg?branch=master)](https://coveralls.io/github/jenssegers/laravel-mongodb?branch=master) [![Donate](https://img.shields.io/badge/donate-paypal-blue.svg)](https://www.paypal.me/jenssegers)
55

66
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.*
77

@@ -15,7 +15,6 @@ Table of contents
1515
* [Query Builder](#query-builder)
1616
* [Schema](#schema)
1717
* [Extensions](#extensions)
18-
* [Troubleshooting](#troubleshooting)
1918
* [Examples](#examples)
2019

2120
Installation
@@ -154,8 +153,8 @@ You can connect to multiple servers or replica sets with the following configura
154153
'username' => env('DB_USERNAME'),
155154
'password' => env('DB_PASSWORD'),
156155
'options' => [
157-
'replicaSet' => 'replicaSetName'
158-
]
156+
'replicaSet' => 'replicaSetName'
157+
]
159158
],
160159
```
161160

@@ -275,7 +274,7 @@ Supported operations are:
275274
- unique
276275
- background, sparse, expire, geospatial (MongoDB specific)
277276

278-
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
279278

280279
### Geospatial indexes
281280

@@ -324,6 +323,7 @@ If you want to use MongoDB as your database backend, change the driver in `confi
324323
'queue' => 'default',
325324
'expire' => 60,
326325
],
326+
]
327327
```
328328

329329
If you want to use MongoDB to handle failed jobs, change the database in `config/queue.php`:
@@ -332,7 +332,7 @@ If you want to use MongoDB to handle failed jobs, change the database in `config
332332
'failed' => [
333333
'database' => 'mongodb',
334334
'table' => 'failed_jobs',
335-
],
335+
],
336336
```
337337

338338
And add the service provider in `config/app.php`:
@@ -613,15 +613,15 @@ $users = User::where('location', 'geoWithin', [
613613
[
614614
-0.1450383,
615615
51.5069158,
616-
],
616+
],
617617
[
618618
-0.1367563,
619619
51.5100913,
620-
],
620+
],
621621
[
622622
-0.1270247,
623623
51.5013233,
624-
],
624+
],
625625
[
626626
-0.1450383,
627627
51.5069158,
@@ -705,7 +705,7 @@ For more information about model manipulation, check http://laravel.com/docs/elo
705705

706706
### Dates
707707

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: 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
709709

710710
Example:
711711

@@ -782,7 +782,7 @@ class User extends Eloquent {
782782
```
783783

784784

785-
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
786786

787787
### EmbedsMany Relations
788788

@@ -981,7 +981,7 @@ $cursor = DB::collection('users')->raw(function($collection)
981981
Optional: if you don't pass a closure to the raw method, the internal MongoCollection object will be accessible:
982982

983983
```php
984-
$model = User::raw()->findOne(['age' => array('$lt' => 18)]);
984+
$model = User::raw()->findOne(['age' => ['$lt' => 18]]);
985985
```
986986

987987
The internal MongoClient and MongoDB objects can be accessed like this:
@@ -1075,7 +1075,7 @@ You may easily cache the results of a query using the remember method:
10751075
$users = User::remember(10)->get();
10761076
```
10771077

1078-
*From: http://laravel.com/docs/queries#caching-queries*
1078+
*From: https://laravel.com/docs/4.2/queries#caching-queries*
10791079

10801080
### Query Logging
10811081

@@ -1085,4 +1085,4 @@ By default, Laravel keeps a log in memory of all queries that have been run for
10851085
DB::connection()->disableQueryLog();
10861086
```
10871087

1088-
*From: http://laravel.com/docs/database#query-logging*
1088+
*From: https://laravel.com/docs/4.2/database#query-logging*

0 commit comments

Comments
 (0)