creation of Notifications table and migration
This commit is contained in:
@@ -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