What are Eloquent Attribute Casts?
Eloquent attribute casting allows model attributes to be automatically converted when they are read from or written to a model. Common examples include converting values to boolean, integer, array or date-related types.