Create relationship task_user
This commit is contained in:
1 parent
f353e0c964
commit
71fc82a0e7
3 files changed
+40
-1
No files matched your search
@@ -50,4 +50,8 @@ class User extends Authenticatable
|
||||
'password' => 'hashed',
|
||||
];
|
||||
}
|
||||
|
||||
public function tasks() {
|
||||
return $this->belongsToMany(Task::class);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user