asantibanez / livewire-calendar

Laravel Livewire component to show Events in a good looking monthly calendar
MIT License
889 stars 234 forks source link

[App\Http\Livewire\AppointmentsCalendar] does not implement [LivewireUI\Modal\Contracts\ModalComponent] interface. #51

Open resujentoezequiel opened 1 year ago

resujentoezequiel commented 1 year ago

Good day,

I already ran this code composer require asantibanez/livewire-calendar to install this package

but the error Exception [App\Http\Livewire\AppointmentsCalendar] does not implement [LivewireUI\Modal\Contracts\ModalComponent] interface.

even though I add the "Asantibanez\LivewireCalendar\": "vendor/asantibanez/livewire-calendar/src/" in the autoload

and I already added the Asantibanez\LivewireCalendar\LivewireCalendarServiceProvider::class, to the Package Service Providers

And 'LivewireCalendar' => \Asantibanez\LivewireCalendar\LivewireCalendarFacade::class, to the alias.

This is my Livewire:

use Livewire\Component; use Illuminate\Support\Collection; use Illuminate\Support\Carbon; use Asantibanez\LivewireCalendar\LivewireCalendar;

class AppointmentsCalendar extends LivewireCalendar { public function events() : Collection { return collect([ [ 'id' => 1, 'title' => 'Breakfast', 'description' => 'Pancakes! 🥞', 'date' => Carbon::today(), ], [ 'id' => 2, 'title' => 'Meeting with Pamela', 'description' => 'Work stuff', 'date' => Carbon::tomorrow(), ], ]); }

jurri commented 1 year ago

dont use livewire-calender u dont need it. For me its only buggy ...

use Fullcalender on Laravel --> this works with livewire and without livewire or else ... best for me :)

here an example: https://www.itsolutionstuff.com/post/laravel-fullcalendar-example-tutorialexample.html