<?php namespace Illuminate\Support; use Carbon\Carbon as BaseCarbon; use Carbon\CarbonImmutable as BaseCarbonImmutable; class Carbon extends BaseCarbon { /** * {@inheritdoc} */ public static function setTestNow($testNow = null) { BaseCarbon::setTestNow($testNow); BaseCarbonImmutable::setTestNow($testNow); } }