diff --git a/resources/views/guest/home.blade.php b/resources/views/guest/home.blade.php
index 9e949b3..88a522a 100644
--- a/resources/views/guest/home.blade.php
+++ b/resources/views/guest/home.blade.php
@@ -7,4 +7,18 @@
{{ config('blog.publishing_name') }}
{{ config('blog.subheading') }}
+
+ @forelse($articles as $article)
+
+
+ Article: {{ $article->title }}
+
+
+ {!! $article->body !!}
+
+
+ @empty
+ No articles published yet. Check back soon!
+ @endforelse
+
@endsection
diff --git a/routes/web.php b/routes/web.php
index 6c3f91d..1e13af8 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -16,7 +16,8 @@ use Illuminate\Support\Facades\Route;
*/
Route::get('/', function () {
- return view('guest.home');
+ $articles = Article::latest()->limit(10)->get();
+ return view('guest.home', ['articles' => $articles]);
});
Route::get('/test-insert', function () {