mirror of
https://github.com/10h30/Test-Eloquent-Relationships.git
synced 2026-07-11 10:46:13 +09:00
Task 3 - multi-level relationships
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user