Create your own method or manipulate the data after to perform a query.
Laravel does a lot, but using php when Laravel helpers can't be used is priceless.
I am using Lumen framework. I have one problem, I need to set custom accessor for attribute, but the problem is that column in database starts with capital letter. For example Logo.And in case of first capital letter, accessor is not called while retrieving object, I have tried with several columns, columns with name starts from small letter works perfectly.
public function getLogoAttribute($value) This accessor doesn't work ,because name of column is Logo I cannot change the name of columns in the database, but need to use accessors in my application. I understand that I can change sources of Eloquent framework, but maybe there any other way to get it working. Thanks.
Please or to participate in this conversation.