laravel/framework — pull request #2529 by robclancy (2013-10-20 15:13:53+00:00)
Title: Make NotFoundHttpException only be thrown when dispatching and not internally by the controller

Basically the `__call` overloading in the controller to throw the `NotFoundHttpException` feels hacky and like a left over from the old routing system. It causes issues in controllers where if you make a typo or something when calling a method in the controller you will get a not found exception instead of a normal undefined method error. Very misleading and annoying.

Added tests and then the new code with `is_callable` in the dispatcher instead.