update bugs user notification

This commit is contained in:
Linksehat Staging Server
2024-05-28 09:00:27 +07:00
parent 2645a7d785
commit 151248d448
10 changed files with 353 additions and 46 deletions

View File

@@ -73,5 +73,8 @@ class User extends Authenticatable
return $this->morphMany(NotificationToken::class, 'notifiabletoken');
}
public function routeNotificationForFcm()
{
return $this->notificationTokens()->pluck('token')->toArray();
}
}