From 4123effc03f8e0f75381aa30d99532880d92ea1d Mon Sep 17 00:00:00 2001 From: Rea Rustagi <85902999+rustagir@users.noreply.github.com> Date: Thu, 24 Oct 2024 15:29:52 -0400 Subject: [PATCH] DOCSP-44610: fix php links (#3185) * DOCSP-44610: fix php links * use php directive --- docs/eloquent-models/model-class.txt | 6 +++--- docs/fundamentals/connection/tls.txt | 5 +++-- docs/quick-start/download-and-install.txt | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/eloquent-models/model-class.txt b/docs/eloquent-models/model-class.txt index 8cedb4ece..4f5ae61b7 100644 --- a/docs/eloquent-models/model-class.txt +++ b/docs/eloquent-models/model-class.txt @@ -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 `__ -type, to the Laravel ``datetime`` type. +model attribute, stored in MongoDB as a :php:`MongoDB\\BSON\\UTCDateTime +` type, to the Laravel ``datetime`` type. .. literalinclude:: /includes/eloquent-models/PlanetDate.php :language: php @@ -216,7 +216,7 @@ type, to the Laravel ``datetime`` type. To learn more, see `Attribute Casting `__ in the Laravel documentation. -This conversion lets you use the PHP `DateTime `__ +This conversion lets you use the PHP :php:`DateTime ` or the `Carbon 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 diff --git a/docs/fundamentals/connection/tls.txt b/docs/fundamentals/connection/tls.txt index 793157286..9bf98248b 100644 --- a/docs/fundamentals/connection/tls.txt +++ b/docs/fundamentals/connection/tls.txt @@ -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() -`__ +To learn more about setting URI options, see the +:php:`MongoDB\\Driver\\Manager::__construct() +` API documentation. To learn more about enabling TLS on a connection, see the diff --git a/docs/quick-start/download-and-install.txt b/docs/quick-start/download-and-install.txt index 5e9139ec8..23cb9b440 100644 --- a/docs/quick-start/download-and-install.txt +++ b/docs/quick-start/download-and-install.txt @@ -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 `__ - guide to install the {+php-extension+}. + Follow the :php:`Installing the MongoDB PHP Driver with PECL + ` guide to install the {+php-extension+}. .. step:: Install Laravel