creation of Notifications table and migration

This commit is contained in:
Giovanni committed 2025-11-09 18:04:25 +01:00
1 parent 8341021ba5
commit 3c2128b9b7
5 files changed
+86 -36

No files matched your search

+5
View File
@@ -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');
}
}