use native Notification table and migration

This commit is contained in:
Giovanni committed 2026-03-28 16:03:18 +01:00
1 parent de0457c426
commit 93bfc19e6e
4 files changed
+5 -67

No files matched your search

-12
View File
@@ -57,16 +57,4 @@ class User extends Authenticatable
public function tasks() {
return $this->belongsToMany(Task::class);
}
public function notifications(): \Illuminate\Database\Eloquent\Relations\BelongsToMany
{
return $this->belongsToMany(
Notification::class,
'notification_user',
'user_id',
'notification_id',
)
->withPivot('unread')
->withTimestamps();
}
}