diff --git a/app/Models/User.php b/app/Models/User.php index 6b9df01..5a6b29c 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -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'); }