dimanche 22 avril 2018

How to store multiple date ranges of a event?

Basically i am creating an application where one event can have multiple date ranges like below and i want to show these events on jQuery calendar.

Event Table ID Name 1 Test Event

Event Date Table ID Event_ID Start Date End Date 1 1 2018-04-22 2018-04-22 2 1 2018-04-25 2018-04-27 3 1 2018-05-01 2018-05-10

There is Event model but Event date doesn't have any model So how can i do this with laravel eloquent relationship?

And how do i check particular event is available in specific date range while retrieving events from database.

Thanks in advance!



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2JiVIip
via IFTTT

Aucun commentaire:

Enregistrer un commentaire