There is two options that you can do to interact with time:
Option 1: Use Laravel inbuilt function
Note: Laravel Version >= 8
Latest version of Laravel has good method to interact with time:
$this->travel(5)->milliseconds();
$this->travel(5)->seconds();
$this->travel(5)->minutes();
$this->travel(5)->hours();
$this->travel(5)->days();
$this->travel(5)->weeks();
$this->travel(5)->years();
// Travel into the past...
$this->travel(-5)->hours();
// Travel to an explicit time...
$this->travelTo(now()->subHours(6));
// Return back to the present time...
$this->travelBack();
Ref: https://laravel.com/docs/mocking#interacting-with-time
Option 2: Carbon method
Carbon::setTestNow();
Or set any dates
$knownDate = Carbon::create(2001, 5, 21, 12);
Carbon::setTestNow($knownDate); // Or any dates
echo Carbon::now(); // will show 2001-05-21 12:00:00
Ref: https://laraveldaily.com/carbon-trick-set-now-time-to-whatever-you-want/