From 279ef87231e5429be40c985eeae4c1bc2de4fb5d Mon Sep 17 00:00:00 2001 From: Kevin Albertson Date: Wed, 15 Jul 2026 13:44:14 -0400 Subject: [PATCH] DOCSP-62088 move Laravel key generation --- .../current/source/get-started.txt | 18 ++++++++---------- .../upcoming/source/get-started.txt | 18 ++++++++---------- 2 files changed, 16 insertions(+), 20 deletions(-) diff --git a/content/laravel-mongodb/current/source/get-started.txt b/content/laravel-mongodb/current/source/get-started.txt index ca462f55485..4c2bc2088f5 100644 --- a/content/laravel-mongodb/current/source/get-started.txt +++ b/content/laravel-mongodb/current/source/get-started.txt @@ -132,7 +132,7 @@ dependencies to a Laravel web application. New to Laravel? Check out our bootcamp and documentation. Build something amazing! - .. step:: Add a Laravel application encryption key + .. step:: Add {+odm-long+} to the dependencies Navigate to the application directory you created in the previous step: @@ -141,15 +141,6 @@ dependencies to a Laravel web application. cd {+quickstart-app-name+} - Run the following command to add the Laravel application encryption - key, which is required to encrypt cookies: - - .. code-block:: bash - - php artisan key:generate - - .. step:: Add {+odm-long+} to the dependencies - Run the following command to add the {+odm-long+} dependency to your application: @@ -280,6 +271,13 @@ Configure Your MongoDB Connection cp .env.example .env + Run the following command to add the Laravel application encryption + key, which is required to encrypt cookies: + + .. code-block:: bash + + php artisan key:generate + Open the ``.env`` file and add or edit the following variables and values. Replace the ```` placeholder with your connection string from the diff --git a/content/laravel-mongodb/upcoming/source/get-started.txt b/content/laravel-mongodb/upcoming/source/get-started.txt index ca462f55485..4c2bc2088f5 100644 --- a/content/laravel-mongodb/upcoming/source/get-started.txt +++ b/content/laravel-mongodb/upcoming/source/get-started.txt @@ -132,7 +132,7 @@ dependencies to a Laravel web application. New to Laravel? Check out our bootcamp and documentation. Build something amazing! - .. step:: Add a Laravel application encryption key + .. step:: Add {+odm-long+} to the dependencies Navigate to the application directory you created in the previous step: @@ -141,15 +141,6 @@ dependencies to a Laravel web application. cd {+quickstart-app-name+} - Run the following command to add the Laravel application encryption - key, which is required to encrypt cookies: - - .. code-block:: bash - - php artisan key:generate - - .. step:: Add {+odm-long+} to the dependencies - Run the following command to add the {+odm-long+} dependency to your application: @@ -280,6 +271,13 @@ Configure Your MongoDB Connection cp .env.example .env + Run the following command to add the Laravel application encryption + key, which is required to encrypt cookies: + + .. code-block:: bash + + php artisan key:generate + Open the ``.env`` file and add or edit the following variables and values. Replace the ```` placeholder with your connection string from the