You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For dates it displays the full date format, instead of the one I defined (Y-m-d). With enums there is a crash because it needs a string type and gets an enum.
From what I checked, it would be enough to use $model->toArray() in the addCsvRows function. Serializing to a table will take into account the cast and will convert all attributes to valid string values.
The text was updated successfully, but these errors were encountered:
When I use attribute casting in the model, such as dates, or enum type, then this library does not deal with it, such as:
For dates it displays the full date format, instead of the one I defined (Y-m-d). With enums there is a crash because it needs a string type and gets an enum.
From what I checked, it would be enough to use
$model->toArray()
in theaddCsvRows
function. Serializing to a table will take into account the cast and will convert all attributes to valid string values.The text was updated successfully, but these errors were encountered: