Closed
Description
Hello!
I hope to be fine!
As I understand, there is not casting support in the models (according to some Issue like this #1580 )
I present to add this function to the model:
public function setAttribute($key, $value)
{
if ($this->hasCast($key)) {
$value = $this->castAttribute($key, $value);
}
return parent::setAttribute($key, $value);
}