Create relationship task_user

This commit is contained in:
T'JAMPENS QUENTIN p2406187
2025-11-14 09:46:57 +01:00
parent f353e0c964
commit 71fc82a0e7
3 changed files with 40 additions and 1 deletions
+4
View File
@@ -50,4 +50,8 @@ class User extends Authenticatable
'password' => 'hashed',
];
}
public function tasks() {
return $this->belongsToMany(Task::class);
}
}