Skip to content

Commit 536327d

Browse files
authored
DOCSP-48018: laravel 12 feature compat (mongodb#3304)
* DOCSP-48018: laravel 12 feature compat * small fixes * JT fix
1 parent 937fb27 commit 536327d

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

docs/eloquent-models/model-class.txt

+4-3
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,10 @@ model attribute, stored in MongoDB as a :php:`MongoDB\\BSON\\UTCDateTime
200200

201201
.. tip:: Casts in Laravel 11
202202

203-
In Laravel 11, you can define a ``casts()`` method to specify data type conversions
204-
instead of using the ``$casts`` attribute. The following code performs the same
205-
conversion as the preceding example by using a ``casts()`` method:
203+
Starting in Laravel 11, you can define a ``casts()`` method to
204+
specify data type conversions instead of using the ``$casts``
205+
attribute. The following code performs the same conversion as the
206+
preceding example by using a ``casts()`` method:
206207

207208
.. code-block:: php
208209

docs/feature-compatibility.txt

+13-6
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Overview
2121
--------
2222

2323
This guide describes the Laravel features that are supported by
24-
{+odm-long+}. This page discusses Laravel version 11.x feature
24+
{+odm-long+}. This page discusses Laravel version 12.x feature
2525
availability in the {+odm-short+}.
2626

2727
The following sections contain tables that describe whether individual
@@ -32,6 +32,7 @@ Database Features
3232

3333
.. list-table::
3434
:header-rows: 1
35+
:widths: 40 60
3536

3637
* - Eloquent Feature
3738
- Availability
@@ -63,6 +64,12 @@ Database Features
6364
* - Database Monitoring
6465
- *Unsupported*
6566

67+
* - Multi-database Support / Multiple Schemas
68+
- *Unsupported* Laravel uses a dot separator (``.``)
69+
between SQL schema and table names, but MongoDB allows ``.``
70+
characters within collection names, which might lead to
71+
unexpected namespace parsing.
72+
6673
Query Features
6774
--------------
6875

@@ -114,19 +121,19 @@ The following Eloquent methods are not supported in the {+odm-short+}:
114121
* - Unions
115122
- *Unsupported*
116123

117-
* - `Basic Where Clauses <https://laravel.com/docs/11.x/queries#basic-where-clauses>`__
124+
* - `Basic Where Clauses <https://laravel.com/docs/{+laravel-docs-version+}/queries#basic-where-clauses>`__
118125
- ✓
119126

120-
* - `Additional Where Clauses <https://laravel.com/docs/11.x/queries#additional-where-clauses>`__
127+
* - `Additional Where Clauses <https://laravel.com/docs/{+laravel-docs-version+}/queries#additional-where-clauses>`__
121128
- ✓
122129

123130
* - Logical Grouping
124131
- ✓
125132

126-
* - `Advanced Where Clauses <https://laravel.com/docs/11.x/queries#advanced-where-clauses>`__
133+
* - `Advanced Where Clauses <https://laravel.com/docs/{+laravel-docs-version+}/queries#advanced-where-clauses>`__
127134
- ✓
128135

129-
* - `Subquery Where Clauses <https://laravel.com/docs/11.x/queries#subquery-where-clauses>`__
136+
* - `Subquery Where Clauses <https://laravel.com/docs/{+laravel-docs-version+}/queries#subquery-where-clauses>`__
130137
- *Unsupported*
131138

132139
* - Ordering
@@ -136,7 +143,7 @@ The following Eloquent methods are not supported in the {+odm-short+}:
136143
- *Unsupported*
137144

138145
* - Grouping
139-
- Partially supported, use :ref:`Aggregations <laravel-query-builder-aggregations>`.
146+
- Partially supported. Use :ref:`Aggregations <laravel-query-builder-aggregations>`.
140147

141148
* - Limit and Offset
142149
- ✓

0 commit comments

Comments
 (0)