From ec0509efcda6dc791bf62acd7bcc8f0310c2c15b Mon Sep 17 00:00:00 2001 From: Andy Date: Tue, 24 Oct 2023 15:46:47 +0200 Subject: [PATCH] fix: menus error --- resources/views/admin/layouts/app.blade.php | 2 +- src/Livewire/Frontend/Menu.php | 2 +- src/Livewire/Menu.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/admin/layouts/app.blade.php b/resources/views/admin/layouts/app.blade.php index ffbae8c..9ff80d8 100644 --- a/resources/views/admin/layouts/app.blade.php +++ b/resources/views/admin/layouts/app.blade.php @@ -86,7 +86,7 @@
  • {{ __('Posts') }}
  • {{ __('Pages') }}
  • - {{-- --}} +
  • {{ __('Media library') }}
  • diff --git a/src/Livewire/Frontend/Menu.php b/src/Livewire/Frontend/Menu.php index a4bd135..20bde83 100644 --- a/src/Livewire/Frontend/Menu.php +++ b/src/Livewire/Frontend/Menu.php @@ -11,7 +11,7 @@ class Menu extends Component { public $name; - public $menuitem; + public $menuitem = array(); public function mount($name = null) { diff --git a/src/Livewire/Menu.php b/src/Livewire/Menu.php index b492304..764f1db 100644 --- a/src/Livewire/Menu.php +++ b/src/Livewire/Menu.php @@ -11,7 +11,7 @@ class Menu extends Component { public $name; - public $menuitem; + public $menuitem = array(); public function mount($name = null) {