laravel / 8 / api / 8.x / illuminate / contracts / database / eloquent / castable.html

Castable

interface Castable (View source)

Methods

static string castUsing(array $arguments)

Get the name of the caster class to use when casting from / to this cast target.

Details

static string castUsing(array $arguments)

Get the name of the caster class to use when casting from / to this cast target.

Parameters

array $arguments

Return Value

string

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Contracts/Database/Eloquent/Castable.html