Shift with red gradient lettering
Loading navigation...

Use Laravel Carbon

Laravel

Laravel provides an Illuminate\Support\Carbon class which wraps the underlying Carbon class. By using this class, you gain access to some additional testing methods and create separation between your code and underlying dependencies.

Before

use Carbon\Carbon;

After

use Illuminate\Support\Carbon;

← Back to the Workbench Tasks