Create relationship task_user

This commit is contained in:
T'JAMPENS QUENTIN p2406187 committed 2025-11-14 09:46:57 +01:00
1 parent f353e0c964
commit 71fc82a0e7
3 files changed
+40 -1

No files matched your search

+4
View File
@@ -50,4 +50,8 @@ class User extends Authenticatable
'password' => 'hashed',
];
}
public function tasks() {
return $this->belongsToMany(Task::class);
}
}