Skip to content

Merge 5.0 into 5.1 #3187

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

Merged
merged 3 commits into from
Oct 24, 2024
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
8 changes: 4 additions & 4 deletions docs/eloquent-models/model-class.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ retrieving data by using a casting helper. This helper is a convenient
alternative to defining equivalent accessor and mutator methods on your model.

In the following example, the casting helper converts the ``discovery_dt``
model attribute, stored in MongoDB as a `MongoDB\\BSON\\UTCDateTime <https://www.php.net/manual/en/class.mongodb-bson-utcdatetime.php>`__
type, to the Laravel ``datetime`` type.
model attribute, stored in MongoDB as a :php:`MongoDB\\BSON\\UTCDateTime
<class.mongodb-bson-utcdatetime>` type, to the Laravel ``datetime`` type.

.. literalinclude:: /includes/eloquent-models/PlanetDate.php
:language: php
Expand All @@ -216,8 +216,8 @@ type, to the Laravel ``datetime`` type.
To learn more, see `Attribute Casting <https://laravel.com/docs/{+laravel-docs-version+}/eloquent-mutators#attribute-casting>`__
in the Laravel documentation.

This conversion lets you use the PHP `DateTime
<https://www.php.net/manual/en/class.datetime.php>`__ class to work with dates
This conversion lets you use the PHP :php:`DateTime
<class.datetime>` class to work with dates
in this field. The following example shows a Laravel query that uses the
casting helper on the model to query for planets with a ``discovery_dt`` of
less than three years ago:
Expand Down
5 changes: 3 additions & 2 deletions docs/fundamentals/connection/tls.txt
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,9 @@ The following example configures a connection with TLS enabled:
Additional Information
----------------------

To learn more about setting URI options, see the `MongoDB\Driver\Manager::__construct()
<https://www.php.net/manual/en/mongodb-driver-manager.construct.php>`__
To learn more about setting URI options, see the
:php:`MongoDB\\Driver\\Manager::__construct()
<mongodb-driver-manager.construct>`
API documentation.

To learn more about enabling TLS on a connection, see the
Expand Down
4 changes: 2 additions & 2 deletions docs/quick-start/download-and-install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ to a Laravel web application.

{+odm-long+} requires the {+php-extension+} to manage MongoDB
connections and commands.
Follow the `Installing the MongoDB PHP Driver with PECL <https://www.php.net/manual/en/mongodb.installation.pecl.php>`__
guide to install the {+php-extension+}.
Follow the :php:`Installing the MongoDB PHP Driver with PECL
<mongodb.installation>` guide to install the {+php-extension+}.

.. step:: Install Laravel

Expand Down
Loading