creation of Notifications table and migration
This commit is contained in:
1 parent
8341021ba5
commit
3c2128b9b7
5 files changed
+86
-36
No files matched your search
@@ -50,4 +50,9 @@ class User extends Authenticatable
|
||||
'password' => 'hashed',
|
||||
];
|
||||
}
|
||||
|
||||
public function notifications(): \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(Notification::class, 'user_notification', 'user_id', 'notification_id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user