From 22395e606cfa9e5562716f494c20948cbd5a48d1 Mon Sep 17 00:00:00 2001 From: rustagir Date: Thu, 24 Oct 2024 13:55:37 -0400 Subject: [PATCH 1/2] DOCSP-44610: fix php links --- docs/quick-start/download-and-install.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/quick-start/download-and-install.txt b/docs/quick-start/download-and-install.txt index 5e9139ec8..78a009d3b 100644 --- a/docs/quick-start/download-and-install.txt +++ b/docs/quick-start/download-and-install.txt @@ -35,7 +35,7 @@ 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 `__ + Follow the `Installing the MongoDB PHP Driver with PECL `__ guide to install the {+php-extension+}. .. step:: Install Laravel From f80d9dd36d6b629adf5e65548a16568f94e342ac Mon Sep 17 00:00:00 2001 From: rustagir Date: Thu, 24 Oct 2024 15:28:08 -0400 Subject: [PATCH 2/2] 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 78a009d3b..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