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 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 + + +