mirror of
https://github.com/10h30/Test-Eloquent-Relationships.git
synced 2026-07-17 05:33:35 +09:00
Task 3 - multi-level relationships
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user