fix notifications (#109)

This commit is contained in:
Saeed Vaziry
2024-02-16 21:54:51 +01:00
committed by GitHub
parent f70963d6bb
commit 9db310a06b
14 changed files with 20 additions and 12 deletions

View File

@ -3,6 +3,7 @@
namespace App\NotificationChannels;
use App\Contracts\Notification;
use App\Models\NotificationChannel;
use Illuminate\Support\Facades\Http;
use Throwable;
@ -47,6 +48,8 @@ public function connect(): bool
public function send(object $notifiable, Notification $notification): void
{
/** @var NotificationChannel $notifiable */
$this->notificationChannel = $notifiable;
$this->sendToTelegram($notification->toTelegram($notifiable));
}