Security Theater wrote a nice tutorial on how to use Laravel's whereBetween method efficiently.

laravel wherebetween method

Laravel provides a dynamic where method, but a dynamic between method isn't provided at the moment, so why not to simulate this.