Open sd-evo opened 7 months ago
cast it as a string.. it expects a string value.
cast it as a string.. it expects a string value.
Thanks for answer!
But I specifically use Custom cast to MoneyPhp in the application. I have app and open admin panel. I can't to use the string type. Any ideas?
grid is only display, it doesnt submit data, only "views" data, the form would handle data submission
grid is only display, it doesnt submit data, only "views" data, the form would handle data submission
Yes, but grid expects that the field "current_balance" is string... How I can show this data type(MoneyPhp) in grid using method "display"? Strict typing is the best practice, so I use custom cast to MoneyPhp in Eloquent.
I am unable to assist here.
I have custom cast class, which return MoneyPhp object. Laravel doc: https://laravel.com/docs/10.x/eloquent-mutators#custom-casts My code:
I get error:
How to display the column which using Custom cast?