Skip to content

Commit

Permalink
Update User.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OhmygoodR authored Apr 22, 2024
1 parent 09868d6 commit 7e39f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function tasks()
public function comments()
{
// TASK: add the code here for two-level relationship
$this->hasManyThrough(Comment::class,Task::class,'users_id','task_id','id','id');
return $this->hasManyThrough(Comment::class,Task::class,'users_id','task_id','id','id');

}

Expand Down

0 comments on commit 7e39f85

Please sign in to comment.