changed logic in push alert notification page
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 10s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 10s
Gemini PR Review / Gemini PR Review (pull_request) Successful in 15s
Laravel Pint / pint (pull_request) Failing after 2m14s
Laravel Larastan / larastan (pull_request) Failing after 2m18s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 10s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 10s
Gemini PR Review / Gemini PR Review (pull_request) Successful in 15s
Laravel Pint / pint (pull_request) Failing after 2m14s
Laravel Larastan / larastan (pull_request) Failing after 2m18s
This commit is contained in:
@@ -31,9 +31,25 @@ class PushAlertNotification extends Notification
|
||||
$this->body = $body;
|
||||
}
|
||||
|
||||
// public function via($notifiable)
|
||||
// {
|
||||
// return [WebPushChannel::class];
|
||||
// }
|
||||
|
||||
public function via($notifiable)
|
||||
{
|
||||
return [WebPushChannel::class];
|
||||
return [
|
||||
'database', // ✅ Filament toast
|
||||
WebPushChannel::class // ✅ Browser / PWA push
|
||||
];
|
||||
}
|
||||
|
||||
public function toDatabase($notifiable): array
|
||||
{
|
||||
return [
|
||||
'title' => $this->title,
|
||||
'body' => $this->body,
|
||||
];
|
||||
}
|
||||
|
||||
// public function toWebPush($notifiable, $notification)
|
||||
|
||||
Reference in New Issue
Block a user