From a2beea66e1b72ccd7bf433be0d1eb034451feedf Mon Sep 17 00:00:00 2001 From: Pauline Vos Date: Wed, 21 May 2025 17:55:54 +0200 Subject: [PATCH] Swap .env file copy and key gen steps in README The key gen step fails if the .env example file hasn't been copied yet, so that step should come first. --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 78eb694..7836f45 100644 --- a/README.md +++ b/README.md @@ -55,21 +55,21 @@ Run the following ``composer`` command to install the dependencies: composer install ``` -### Generate an App Key +### Make a Copy of the Example Environment File -Run the following command to generate a Laravel application key: +Run the following command to use the example environment file +in your sample app: ``` -php artisan key:generate +cp .env.example .env ``` -### Make a Copy of the Example Environment File +### Generate an App Key -Run the following command to use the example environment file -in your sample app: +Run the following command to generate a Laravel application key: ``` -cp .env.example .env +php artisan key:generate ``` ### Configure your MongoDB Credentials