use native Notification table and migration

This commit is contained in:
2026-03-28 16:03:18 +01:00
parent de0457c426
commit 93bfc19e6e
4 changed files with 5 additions and 67 deletions
-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();
}
}