laravel/framework — pull request #3564 by Ruby184 (2014-02-15 11:43:39+00:00)
Title: Fix Illegal string offset 'function' on morphToMany

Fix for bug https://github.com/laravel/framework/issues/3558 and also incorrect variable name inside of belongsToMany method.