asantibanez / livewire-calendar

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

Class "Asantibanez\LivewireCalendar\LivewireCalendar" not found #45

Open Kristianmarku opened 1 year ago

Kristianmarku commented 1 year ago

I've done everything as said in the documentation, but this "Class "Asantibanez\LivewireCalendar\LivewireCalendar" not found" error shows up whenever I insert in a blade file, teacherCalendar being the livewire component name. Any suggestions? I have Laravel 9 installed, and managed to install this plugin via a solution by some user that I found in a forum. Might that be the issue?

yamakrane commented 1 year ago

@Kristianmarku did you find a way to fix this ?

dcemal commented 1 year ago

@Kristianmarku did you find a way to fix this ?

Go to your composer.json and add this under autoload -> psr-4; "Asantibanez\LivewireCalendar\": "vendor/asantibanez/livewire-calendar/src/"

and in your terminal run composer dump-autoload

if it gives an error update your config/app.php with;

/*

and add following to aliases in config/app.php 'LivewireCalendar' => \Asantibanez\LivewireCalendar\LivewireCalendarFacade::class,

then run composer dump-autoload again.

it will work