Skip to content

Commit

Permalink
Merge 5.1 into 5.x (mongodb#3188)
Browse files Browse the repository at this point in the history
  • Loading branch information
mongodb-php-bot authored Oct 24, 2024
2 parents bd4b9ee + 8afd666 commit 9973195
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
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 @@ -48,8 +48,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

0 comments on commit 9973195

Please sign in to comment.