File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -190,8 +190,8 @@ retrieving data by using a casting helper. This helper is a convenient
190190alternative to defining equivalent accessor and mutator methods on your model.
191191
192192In the following example, the casting helper converts the ``discovery_dt``
193- model attribute, stored in MongoDB as a `MongoDB\\BSON\\UTCDateTime <https://www.php.net/manual/en/class.mongodb-bson-utcdatetime.php>`__
194- type, to the Laravel ``datetime`` type.
193+ model attribute, stored in MongoDB as a :php: `MongoDB\\BSON\\UTCDateTime
194+ <class.mongodb-bson-utcdatetime>` type, to the Laravel ``datetime`` type.
195195
196196.. literalinclude:: /includes/eloquent-models/PlanetDate.php
197197 :language: php
@@ -216,7 +216,7 @@ type, to the Laravel ``datetime`` type.
216216 To learn more, see `Attribute Casting <https://laravel.com/docs/{+laravel-docs-version+}/eloquent-mutators#attribute-casting>`__
217217 in the Laravel documentation.
218218
219- This conversion lets you use the PHP `DateTime <https://www.php.net/manual/en/ class.datetime.php>`__
219+ This conversion lets you use the PHP :php: `DateTime <class.datetime>`
220220or the `Carbon class <https://carbon.nesbot.com/docs/>`__ to work with dates
221221in this field. The following example shows a Laravel query that uses the
222222casting helper on the model to query for planets with a ``discovery_dt`` of
Original file line number Diff line number Diff line change @@ -188,8 +188,9 @@ The following example configures a connection with TLS enabled:
188188Additional Information
189189----------------------
190190
191- To learn more about setting URI options, see the `MongoDB\Driver\Manager::__construct()
192- <https://www.php.net/manual/en/mongodb-driver-manager.construct.php>`__
191+ To learn more about setting URI options, see the
192+ :php:`MongoDB\\Driver\\Manager::__construct()
193+ <mongodb-driver-manager.construct>`
193194API documentation.
194195
195196To learn more about enabling TLS on a connection, see the
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ to a Laravel web application.
3535
3636 {+odm-long+} requires the {+php-extension+} to manage MongoDB
3737 connections and commands.
38- Follow the `Installing the MongoDB PHP Driver with PECL <https://www.php.net/manual/en/mongodb.installation.php>`__
39- guide to install the {+php-extension+}.
38+ Follow the :php: `Installing the MongoDB PHP Driver with PECL
39+ <mongodb.installation>` guide to install the {+php-extension+}.
4040
4141 .. step:: Install Laravel
4242
You can’t perform that action at this time.
0 commit comments