From 94c927d685bee54843c05bd90c1edf6f92ca72d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 22 Jun 2022 16:52:32 +0300 Subject: [PATCH] Fixed notification default typo ( #31zrc14 ) --- app/Http/Livewire/Menu/Notifications.php | 2 +- app/View/Components/Layouts/Admin/Menu.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Livewire/Menu/Notifications.php b/app/Http/Livewire/Menu/Notifications.php index 6b11c30dc..12b1df15b 100644 --- a/app/Http/Livewire/Menu/Notifications.php +++ b/app/Http/Livewire/Menu/Notifications.php @@ -91,7 +91,7 @@ class Notifications extends Component public function getNotifications(): array { $notifications = new \stdClass(); - $notifications->notifications = []; + $notifications->notifications = collect(); $notifications->keyword = $this->keyword; event(new NotificationsCreated($notifications)); diff --git a/app/View/Components/Layouts/Admin/Menu.php b/app/View/Components/Layouts/Admin/Menu.php index ff4a91b49..97c4ba382 100644 --- a/app/View/Components/Layouts/Admin/Menu.php +++ b/app/View/Components/Layouts/Admin/Menu.php @@ -41,7 +41,7 @@ class Menu extends Component { // Get nofitications $notifications = new \stdClass(); - $notifications->notifications = []; + $notifications->notifications = collect(); $notifications->keyword = ''; event(new NotificationsCreated($notifications));