-
Be careful! You have permissions to delete all blog posts, so keep that in mind before clicking on buttons.
+
+
+
+
+ Warning! This blog post belongs to {{ $user->name }}.
+
+
@endif
@endauth
diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php
index e1dcf1a..c07eb29 100644
--- a/resources/views/welcome.blade.php
+++ b/resources/views/welcome.blade.php
@@ -4,7 +4,26 @@
Welcome to the {{ env('APP_NAME', 'Hovedprosjekt') }} homepage!
-
+
+
+
+
+
+
+
Check out our users and their blog posts!
+
+ @foreach (App\User::all() as $user)
+ @if ($user->posts->isEmpty())
+ @continue
+ @endif
+
+
+ @endforeach
@endsection