Could you elaborate a bit more on the actual behaviour of the piece of code you're trying to write?
Jul 29, 2019
3
Level 1
Modifying a hasMany() to return a row for each date in a relation
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 or to participate in this conversation.