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

Work with multiple events #5

Open
buddy94 opened this issue Feb 26, 2021 · 2 comments
Open

Work with multiple events #5

buddy94 opened this issue Feb 26, 2021 · 2 comments

Comments

@buddy94
Copy link

buddy94 commented Feb 26, 2021

Hi,
I was looking to use your excellent package but I don't understand how you can implement a search with multiple events.

I explain: you have provided this method:
$event->getEventsBetween('2021-01-05', '2021-01-15');
With this I can retrieve all the recurrences between two dates of that particular event.
But what if I have multiple events with multiple recurrences each and I want to retrieve all the events (or recurrences of those events) beetwen two dates?

Something like this:
$collectionOfEvents->getEventsBetween('2021-01-05', '2021-01-15');

I also would like to ask you if you could provide an example with laravel and an interaction with a db.

Thank you in advance :)

@rebootcode
Copy link

Try default Eloquent where clause for multiple events.

@hotsaucejake
Copy link

Are there any examples of such a query? For example, most calendar implementations just show a month/week/day at time, which fetches through specific dates (that current month for example). How can you create a query that accounts for events created in the past, that are recurring, and should show up in the current set of dates?

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