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

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

Open
Kristianmarku opened this issue Jan 13, 2023 · 2 comments
Open

Comments

@Kristianmarku
Copy link

Kristianmarku commented Jan 13, 2023

I've done everything as said in the documentation, but this "Class "Asantibanez\LivewireCalendar\LivewireCalendar" not found" error shows up whenever I insert livewire:teacher-calendar/ 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
Copy link

@Kristianmarku did you find a way to fix this ?

@dcemal
Copy link

dcemal commented Apr 14, 2023

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

/*

  • Package Service Providers...
    */
    \Asantibanez\LivewireCalendar\LivewireCalendarServiceProvider::class,

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

then run composer dump-autoload again.

it will work

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

3 participants