create notification when register

This commit is contained in:
Giovanni committed 2025-12-15 16:45:51 +01:00
1 parent dfb70cc5ce
commit eab9565c7d
7 files changed
+1191 -533

No files matched your search

+1 -1
View File
@@ -57,6 +57,6 @@ class User extends Authenticatable
public function notifications(): \Illuminate\Database\Eloquent\Relations\BelongsToMany
{
return $this->belongsToMany(Notification::class, 'user_notification', 'user_id', 'notification_id');
return $this->belongsToMany(Notification::class, 'notification_user', 'user_id', 'notification_id');
}
}