Skip to content

Commit 1755aae

Browse files
author
Chris Cho
authored
Merge pull request #3 from ccho-mongodb/DOCSP-35148-redirects-facets-backslashes
DOCSP-35148: fix redirects, facets, backslashes
2 parents c59f28c + 9e7ac9a commit 1755aae

File tree

5 files changed

+25
-19
lines changed

5 files changed

+25
-19
lines changed

README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
# docs-laravel
1+
=============================
2+
Laravel MongoDB Documentation
3+
=============================
24

3-
[Your words here].
5+
This repository contains documentation for the Laravel MongoDBODM.
46

5-
## Report Issues
7+
File JIRA Tickets
8+
-----------------
69

7-
To file issues or requests regarding the documentation, go to the
8-
`Documentation Jira Project <https://jira.mongodb.org/browse/DOCS>`_.
10+
Please file issue reports or requests at the `Documentation Jira Project
11+
<https://jira.mongodb.org/browse/DOCS>`_.
912

10-
## License
13+
Licenses
14+
--------
1115

1216
All documentation is available under the terms of a `Creative Commons
1317
License <https://creativecommons.org/licenses/by-nc-sa/3.0/>`_.
1418

15-
If you have any questions, please contact `docs@mongodb.com
16-
<mailto:docs@mongodb.com>`_.
19+
The MongoDB Documentation Project is governed by the terms of the
20+
`MongoDB Contributor Agreement
21+
<https://www.mongodb.com/legal/contributor-agreement>`_.
1722

18-
-- The MongoDB Documentation Team
23+
-- The MongoDB Documentations Team

config/redirects

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ define: prefix docs/drivers/php/laravel-mongodb
22
define: base https://www.mongodb.com/${prefix}
33
define: versions v4.1 master
44

5-
# raw: <source file> -> ${base}/<destination>
5+
symlink: current -> master
66

7+
raw: ${prefix}/ -> ${base}/current/
8+
raw: ${prefix}/stable -> ${base}/current/

source/eloquent-models.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ define models for corresponding collections.
1717
Extending the base model
1818
~~~~~~~~~~~~~~~~~~~~~~~~
1919

20-
To get started, create a new model class in your ``app\Models\`` directory.
20+
To get started, create a new model class in your ``app\Models\\`` directory.
2121

2222
.. code-block:: php
2323

@@ -31,7 +31,7 @@ To get started, create a new model class in your ``app\Models\`` directory.
3131
}
3232

3333
Just like a regular model, the MongoDB model class will know which collection
34-
to use based on the model name. For ``Book``\ , the collection ``books`` will
34+
to use based on the model name. For ``Book``, the collection ``books`` will
3535
be used.
3636

3737
To change the collection, pass the ``$collection`` property:
@@ -346,7 +346,7 @@ You can access the embedded models through the dynamic property:
346346
//
347347
}
348348

349-
The inverse relation is auto\ *magically* available. You can omit the reverse
349+
The inverse relation is auto *magically* available. You can omit the reverse
350350
relation definition.
351351

352352
.. code-block:: php
@@ -485,7 +485,7 @@ based on the type of the related model.
485485
If you want this functionality to work both ways, your SQL-models will need
486486
to use the ``MongoDB\Laravel\Eloquent\HybridRelations`` trait.
487487

488-
**This functionality only works for ``hasOne``\ , ``hasMany`` and ``belongsTo``.**
488+
**This functionality only works for ``hasOne``, ``hasMany`` and ``belongsTo``.**
489489

490490
The SQL model must use the ``HybridRelations`` trait:
491491

source/query-builder.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Query Builder
55
=============
66

77
.. facet::
8-
98
:name: genre
109
:values: tutorial
1110

@@ -158,7 +157,7 @@ Distinct requires a field for which to return the distinct values.
158157
// Equivalent to:
159158
$users = User::distinct('name')->get();
160159

161-
Distinct can be combined with **where**\ :
160+
Distinct can be combined with **where**:
162161

163162
.. code-block:: php
164163

@@ -185,7 +184,7 @@ Distinct can be combined with **where**\ :
185184
$price = Product::avg('price');
186185
$total = Product::sum('price');
187186

188-
Aggregations can be combined with **where**\ :
187+
Aggregations can be combined with **where**:
189188

190189
.. code-block:: php
191190

@@ -511,7 +510,7 @@ Add items to an array.
511510
'message' => 'Hi John',
512511
]);
513512

514-
If you **DON'T** want duplicate items, set the third parameter to ``true``\ :
513+
If you **DON'T** want duplicate items, set the third parameter to ``true``:
515514

516515
.. code-block:: php
517516

source/upgrade.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Upgrading from version 3 to 4
2222
- Change dependency name in your composer.json to ``"mongodb/laravel-mongodb": "^4.0"``
2323
and run ``composer update``
2424

25-
- Change namespace from ``Jenssegers\Mongodb\`` to ``MongoDB\Laravel\``
25+
- Change namespace from ``Jenssegers\Mongodb\\`` to ``MongoDB\Laravel\\``
2626
in your models and config
2727

2828
- Remove support for non-Laravel projects

0 commit comments

Comments
 (0)