mirror of
https://github.com/10h30/Test-Eloquent-Relationships.git
synced 2026-06-05 15:07:42 +09:00
Complete Task 1
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ class User extends Authenticatable
|
|||||||
public function tasks()
|
public function tasks()
|
||||||
{
|
{
|
||||||
// TASK: fix this by adding a parameter
|
// TASK: fix this by adding a parameter
|
||||||
return $this->hasMany(Task::class);
|
return $this->hasMany(Task::class,'users_id');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function comments()
|
public function comments()
|
||||||
|
|||||||
Generated
+1460
-1153
File diff suppressed because it is too large
Load Diff
Generated
+9869
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user