laravel/framework — pull request #6168 by bostanio (2014-10-21 16:26:19+00:00)
Title: Cache the method name as well as the attribute for getMutators to avoid ...

When serializing are large number of Model objects the repeated calls to study_case to the attributes get mutators really add up. We already cache the get mutator attribute keys and its simple enough to expand that to include the method names as well. Other than a small change to the test around the getMutator cache all the other unit tests pass without adjustment.