From dcd079d8ac7afb11126a9b2e9e029229eb4d1708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Sun, 20 Jun 2021 12:26:58 +0300 Subject: [PATCH] fixed notification.. --- app/Http/Livewire/Common/Notifications/Recurring.php | 2 +- app/Http/Livewire/Common/Notifications/Reminder.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Livewire/Common/Notifications/Recurring.php b/app/Http/Livewire/Common/Notifications/Recurring.php index 844ec5d02..9017eba60 100644 --- a/app/Http/Livewire/Common/Notifications/Recurring.php +++ b/app/Http/Livewire/Common/Notifications/Recurring.php @@ -69,7 +69,7 @@ class Recurring extends Component foreach ($notifications->items() as $key => $notification) { $data = (object) $notification->getAttribute('data'); - $item = Document::{$this->type}()->where('id', $data[ $this->type'_id'])->first(); + $item = Document::{$this->type}()->where('id', $data[$this->type . '_id'])->first(); $item->notification_id = $notification->getAttribute('id'); $items[] = $item; diff --git a/app/Http/Livewire/Common/Notifications/Reminder.php b/app/Http/Livewire/Common/Notifications/Reminder.php index eaceef8e7..cb3507308 100644 --- a/app/Http/Livewire/Common/Notifications/Reminder.php +++ b/app/Http/Livewire/Common/Notifications/Reminder.php @@ -69,7 +69,7 @@ class Reminder extends Component foreach ($notifications->items() as $key => $notification) { $data = (object) $notification->getAttribute('data'); - $item = Document::{$this->type}()->where('id', $data[ $this->type'_id'])->first(); + $item = Document::{$this->type}()->where('id', $data[$this->type . '_id'])->first(); $item->notification_id = $notification->getAttribute('id'); $items[] = $item;