mirror of
https://github.com/10h30/Test-Eloquent-Relationships.git
synced 2026-07-17 13:43:36 +09:00
Task 1 - hasmany incorrect
This commit is contained in:
@@ -41,4 +41,9 @@ class User extends Authenticatable
|
||||
protected $casts = [
|
||||
'email_verified_at' => 'datetime',
|
||||
];
|
||||
|
||||
public function tasks()
|
||||
{
|
||||
return $this->hasMany(Task::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user