Laravel – How can I use Carbon::setTestNow() to influence the results of the FakerPHP dateTimeBetween method?
I'm using model factory methods in my Laravel test suite that return date ranges. For instance: class WorkSiteFactory extends Factory { // ... Other factory stuff.... /** * Indicate that the Permit status is fully approved. */ public function withApprovedPermit():…