Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
resujentoezequiel opened this issue Apr 27, 2023 · 1 comment

Comments

@resujentoezequiel
Copy link

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
Copy link

jurri commented Jul 28, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants