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

events function not compatible #15

Open
fragmadev opened this issue Feb 4, 2021 · 1 comment
Open

events function not compatible #15

fragmadev opened this issue Feb 4, 2021 · 1 comment

Comments

@fragmadev
Copy link

fragmadev commented Feb 4, 2021

Hi, I want to implement livewire-calendar within my laravel project which it already leverages and livewire for other functions.

I am following the readme and in the LivewireCalendar class I have inserted the events () function as indicated in the guide.

My Visual Studio Code is reporting error to me because it says the events () method is not compatible with 'Asantibanez \ LivewireCalendar \ LivewireCalendar :: events ()

In the guide it is not specified but before the main component class I inserted this line to invoke the package
use Asantibanez \ LivewireCalendar \ LivewireCalendar;

What am I doing wrong?

Thanks to those who want to answer.

See you soon

@matttarsi
Copy link

@fragmadev I had a similar issue. I was able to move past by including:

use Illuminate\Support\Collection;

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