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));