mirror of
https://github.com/alexjustesen/speedtest-tracker.git
synced 2026-06-23 06:30:08 +00:00
116f83a367
Co-authored-by: Alex Justesen <alexjustesen@users.noreply.github.com>
28 lines
759 B
PHP
28 lines
759 B
PHP
<?php
|
|
|
|
namespace App\Actions\Notifications;
|
|
|
|
use App\Models\User;
|
|
use Filament\Notifications\Notification;
|
|
use Lorisleiva\Actions\Concerns\AsAction;
|
|
|
|
class SendDatabaseTestNotification
|
|
{
|
|
use AsAction;
|
|
|
|
public function handle(User $user)
|
|
{
|
|
Notification::make()
|
|
->title(__('settings/notifications.test_notifications.database.received'))
|
|
->body(__('settings/notifications.test_notifications.database.pong'))
|
|
->success()
|
|
->sendToDatabase($user);
|
|
|
|
Notification::make()
|
|
->title(__('settings/notifications.test_notifications.database.sent'))
|
|
->body(__('settings/notifications.test_notifications.database.ping'))
|
|
->success()
|
|
->send();
|
|
}
|
|
}
|