I'm configuring pay periods, which are on the 15 of the month and the last day of the month.
I want to grab sales that happened between those days, so I need to find sales that happened between the 1st and the 15th, and the 16th and the end of the month.
The first part is easy. The second, not so hard, but a little on the messy side.
Get the 15th of the month with Carbon
I'm configuring pay periods, which are on the 15 of the month and the last day of the month.
I want to grab sales that happened between those days, so I need to find sales that happened between the 1st and the 15th, and the 16th and the end of the month.
The first part is easy. The second, not so hard, but a little on the messy side.
Is there a cleaner way of doing this?