I have a model with an array cast on one attribute foo.
protected $casts = [
'foo' => 'array',
];
But the SQL type is VARCHAR.
When the any of markApproved, markRejected, markPostponed, markPending is called, it causes the attributes array to be changed from
$attributes = [
...
'foo' => '["mango","pineapple","pawpaw"]'
...
]
to
$attributes = [
...
'foo' => [
"mango", "pineapple", "pawpaw"
]
...
]
which leads to unexpected value exceptions when trying to save the model