Task 3 - multi-level relationships

This commit is contained in:
PovilasKorop
2021-11-22 07:39:27 +02:00
parent 9c71409ffc
commit 0fbdf0c99a
8 changed files with 108 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
<h2>{{ $user->name }}</h2>
<b>Comments on their tasks:</b>
<ul>
@foreach ($user->comments as $comment)
<li>{{ $comment->name }} ({{ $comment->comment }})</li>
@endforeach
</ul>