class Carbon extends Carbon (View source)
| Conditionable | |
| Dumpable |
| $this|TWhenReturnType | when($value = null, callable|null $callback = null, callable|null $default = null)
Apply the callback if the given "value" is (or resolves to) truthy. | from Conditionable |
| $this|TUnlessReturnType | unless($value = null, callable|null $callback = null, callable|null $default = null)
Apply the callback if the given "value" is (or resolves to) falsy. | from Conditionable |
| never | dd(mixed ...$args)
Dump the given arguments and terminate execution. | from Dumpable |
| $this | dump(mixed ...$args)
Dump the given arguments. | from Dumpable |
| static void | setTestNow(mixed $testNow = null) {@inheritdoc} | |
| static Carbon | createFromId(Ulid|string $id)
Create a Carbon instance from a given ordered UUID or ULID. |
Apply the callback if the given "value" is (or resolves to) truthy.
Apply the callback if the given "value" is (or resolves to) falsy.
Dump the given arguments and terminate execution.
Dump the given arguments.
{@inheritdoc}
Create a Carbon instance from a given ordered UUID or ULID.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Support/Carbon.html