class WithCastable implements GetsCast

Properties

list<mixed> $arguments

Methods

__construct(string $castableClass, mixed ...$arguments)

Create a new castable attribute.

get()

Get the configured cast.

Details

at line 23
__construct(string $castableClass, mixed ...$arguments)

Create a new castable attribute.

Parameters

string $castableClass
mixed ...$arguments

at line 37
Cast get()

Get the configured cast.

Return Value

Cast