Task 3 - multi-level relationships

This commit is contained in:
PovilasKorop
2021-11-22 07:39:27 +02:00
parent 9c71409ffc
commit 0fbdf0c99a
8 changed files with 108 additions and 0 deletions
+6
View File
@@ -44,6 +44,12 @@ class User extends Authenticatable
public function tasks()
{
// TASK: fix this by adding a parameter
return $this->hasMany(Task::class);
}
public function comments()
{
// TASK: add the code here for two-level relationship
}
}