Official PHP Logo PHP


Filtering Carbon Period For Flexibility And Performance

28 November 2021

I recently needed to work on a slot based booking system at work. This system needed to accept a few parameters and return "slots" of time where that user is available. I managed to do this in a flexible way by making use of Carbon's CarbonPeriod class and filters. Lets take a look!

Read Article