So I have a model user in my database that has a column containing a serialized string contact.
My question is: is it possible to ovewrite the method getContactAttribute in order to directly output unserialized data?
Yes this is totally possible, check this section of documentation:
Laravel 4.2 Docs Accessors and Mutators
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With