From 84ec1e2d3481bd7e388fdbbcb14958dd469150ac Mon Sep 17 00:00:00 2001 From: OhmygoodR <109280933+OhmygoodR@users.noreply.github.com> Date: Mon, 10 Jun 2024 00:19:59 +0800 Subject: [PATCH] Update User.php --- app/Models/User.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/User.php b/app/Models/User.php index b48466b3..a5bc933b 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -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()