2 months ago

Modifying a hasMany() to return a row for each date in a relation

Posted 2 months ago by MiguelStevens

I have an Event model, that has many Dates. A Date has a from and to field, spanning over multiple days.

I would like to have it so that for every day in a Date, my hasmany returns that day. I have no idea how to even get started on this, can someone nudge me in the right direction? Thanks

Please sign in or create an account to participate in this conversation.