class Carbon extends Carbon implements JsonSerializable (View source)
Macroable |
static protected array | $macros | The registered string macros. | from Macroable |
static protected callable|null | $serializer | The custom Carbon JSON serializer. |
static void | macro(string $name, object|callable $macro) Register a custom macro. | from Macroable |
static void | mixin(object $mixin) Mix another object into the class. | from Macroable |
static bool | hasMacro(string $name) Checks if macro is registered. | from Macroable |
static mixed | __callStatic(string $method, array $parameters) Dynamically handle calls to the class. | from Macroable |
mixed | __call(string $method, array $parameters) Dynamically handle calls to the class. | from Macroable |
array|string | jsonSerialize() Prepare the object for JSON serialization. | |
static void | serializeUsing(callable $callback) JSON serialize all Carbon instances using the given callback. |
Register a custom macro.
Mix another object into the class.
Checks if macro is registered.
Dynamically handle calls to the class.
Dynamically handle calls to the class.
Prepare the object for JSON serialization.
JSON serialize all Carbon instances using the given callback.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.5/Illuminate/Support/Carbon.html