Create relationship task_user
This commit is contained in:
@@ -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