Answer the question
In order to leave comments, you need to log in
How to properly use Attribute Casting?
Hello. I found in the documentation the possibility, if I understood correctly, to cast the model properties to the desired types.
https://laravel.com/docs/5.4/eloquent-mutators#att...
But it doesn't work when the column is null. I want instead of null, for example, to get an empty string.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question