Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

DOCSP-48018: laravel 12 feature compat #3304

Merged
merged 3 commits into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/eloquent-models/model-class.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,10 @@ model attribute, stored in MongoDB as a :php:`MongoDB\\BSON\\UTCDateTime

.. tip:: Casts in Laravel 11

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

.. code-block:: php

Expand Down
19 changes: 13 additions & 6 deletions docs/feature-compatibility.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Overview
--------

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

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

.. list-table::
:header-rows: 1
:widths: 40 60

* - Eloquent Feature
- Availability
Expand Down Expand Up @@ -63,6 +64,12 @@ Database Features
* - Database Monitoring
- *Unsupported*

* - Multi-database Support / Multiple Schemas
- *Unsupported* Laravel uses a dot separator (``.``)
between SQL schema and table names, but MongoDB allows ``.``
characters within collection names, which might lead to
unexpected namespace parsing.

Query Features
--------------

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

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

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

* - Logical Grouping
- ✓

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

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

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

* - Grouping
- Partially supported, use :ref:`Aggregations <laravel-query-builder-aggregations>`.
- Partially supported. Use :ref:`Aggregations <laravel-query-builder-aggregations>`.

* - Limit and Offset
- ✓
Expand Down
Loading