Is there any way to set an arbitrary date for Laravel's now()
method to return? I have to test that my code works on different dates.
Carbon - Testing Aids: https://carbon.nesbot.com/docs/#api-testing
Allows you to mock the time in tests with Carbon::setTestNow()
And see Carbonite for more advanced features: https://github.com/kylekatarnls/carbonite