feat: add persistent mobile notifications
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Notifications;
|
||||
|
||||
use App\Services\MobileDeepLink;
|
||||
|
||||
class PaymentFailedNotification extends MobileNotification
|
||||
{
|
||||
protected function category(): string
|
||||
{
|
||||
return self::CATEGORY_ACCOUNT;
|
||||
}
|
||||
|
||||
protected function payload(object $notifiable): array
|
||||
{
|
||||
return [
|
||||
'type' => 'payment_failed',
|
||||
'title' => __('api.notifications.payment_failed_title'),
|
||||
'body' => __('api.notifications.payment_failed_body'),
|
||||
'url' => MobileDeepLink::to('profile/settings/billing'),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user