addCasters(array $casters)
Adds casters for resources and objects.
Maps resources or objects types to a callback. Types are in the key, with a callable caster for value. Resource types are to be prefixed with a :
, see e.g. static::$defaultCasters.
Please login to continue.