Skip to content

Commit

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

public function projects()
Expand Down

0 comments on commit 84ec1e2

Please sign in to comment.