From cb6cd2d41aaec8ded6ba6a43ab0b1e7b49d06233 Mon Sep 17 00:00:00 2001 From: Chris Cho Date: Mon, 18 Mar 2024 10:14:38 -0400 Subject: [PATCH 1/2] 031824: Add an alternative view that accesses movies result as an array --- .../views/browse_movies_array.blade.php | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 my-app/resources/views/browse_movies_array.blade.php diff --git a/my-app/resources/views/browse_movies_array.blade.php b/my-app/resources/views/browse_movies_array.blade.php new file mode 100644 index 0000000..b658a1c --- /dev/null +++ b/my-app/resources/views/browse_movies_array.blade.php @@ -0,0 +1,23 @@ + + + + Browse Movies + + +

Movies

+ +@forelse ($movies as $movie) +

+ Title: {{ $movie['title'] }}
+ Year: {{ $movie['year'] }}
+ Runtime: {{ $movie['runtime'] }}
+ IMDB Rating: {{ $movie['imdb']['rating'] }}
+ IMDB Votes: {{ $movie['imdb']['votes'] }}
+ Plot: {{ $movie['plot'] }}
+

+@empty +

No results

+@endforelse + + + From a01e25a4fdd6bded62743118387a0ddd8a4e8f6f Mon Sep 17 00:00:00 2001 From: Pauline Vos Date: Mon, 14 Jul 2025 19:12:54 +0200 Subject: [PATCH 2/2] Swap .env file copy and key gen steps in README (#9) 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