laravel-acquaintances icon indicating copy to clipboard operation
laravel-acquaintances copied to clipboard

Remove attributes from traits?

Open jaulz opened this issue 4 years ago • 0 comments

Hi @msk286, could we please remove the attributes within the traits by any chance? Right now, when you call "toArray" on the model it runs all the methods of the model and thus fires unneeded SQL queries. Maybe as part of a new major release since it would be a breaking change. If users need it, they can anyway easily define it themselves because the helper methods exist.

jaulz avatar Jun 21 '21 13:06 jaulz