Files
Cybrarist 8d9105eaed Features:
- groups and groups price history

Fixes:
- some env are not reflecting

Took 2 hours 10 minutes
2025-02-14 10:53:24 +04:00

26 lines
546 B
PHP

<?php
namespace App\NotificationsChannels;
use Illuminate\Notifications\Notification;
class GotifyChannel
{
protected $gotify;
public function __construct(Gotify $gotify)
{
$this->gotify = $gotify;
}
/**
* Send the given notification.
*/
public function send(object $notifiable, Notification $notification)
{
$message = $notification->toGotify($notifiable);
return $this->gotify->send(notification_title: $message["headers"], notification_content: $message["content"]);
}
}