Carbon
class Carbon extends Carbon (View source)
Traits
Methods
Apply the callback if the given "value" is (or resolves to) truthy.
Apply the callback if the given "value" is (or resolves to) falsy.
{@inheritdoc}
Create a Carbon instance from a given ordered UUID or ULID.
Dump the instance and end the script.
Dump the instance.
Details
$this|TWhenReturnType
when(TWhenParameter|TWhenParameter|null $value = null, callable|null $callback = null, callable|null $default = null)
Apply the callback if the given "value" is (or resolves to) truthy.
$this|TUnlessReturnType
unless(TUnlessParameter|TUnlessParameter|null $value = null, callable|null $callback = null, callable|null $default = null)
Apply the callback if the given "value" is (or resolves to) falsy.
static
setTestNow($testNow = null)
{@inheritdoc}
static Carbon
createFromId(Uuid|Ulid|string $id)
Create a Carbon instance from a given ordered UUID or ULID.
never
dd(mixed ...$args)
Dump the instance and end the script.
$this
dump()
Dump the instance.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.