Column with type point
throws error
#912
-
Actual BehaviourI have field in DB storing spatial data, and more specifically Expected BehaviourSomehow, store spatial data change. Steps to Reproduce
If this is expected behavior, can you point me to some idea how to fix this in my application? Unfortunately i cannot skip this field with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I haven't used that data type, protected $casts = [
'your_point_field' => YourPointCustomCaster::class,
]; |
Beta Was this translation helpful? Give feedback.
I haven't used that data type,
did you try adding a custom cast to the model?
https://laravel.com/docs/10.x/eloquent-mutators#custom-casts