class Serializer (View source)

Properties

static protected array<int, string> $ignore

The properties to ignore when serializing.

Methods

static array
serialize(Type $type)

Serialize the given property to an array.

static bool
isRequired(Type $type)

Determine if the given type is required.

static bool
isNullable(Type $type)

Determine if the given type is nullable.

Details

static array serialize(Type $type)

Serialize the given property to an array.

Parameters

Type $type

Return Value

array

Exceptions

RuntimeException

static protected bool isRequired(Type $type)

Determine if the given type is required.

Parameters

Type $type

Return Value

bool

static protected bool isNullable(Type $type)

Determine if the given type is nullable.

Parameters

Type $type

Return Value

bool

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.