laravel/laravel — pull request #853 by kbanman (2012-06-24 00:58:52+00:00)
Title: Helpful handling of View errors

It can be frustrating debugging errors inside Views because they are parsed by eval(), which strips you of valuable debugging information like the file and line number.
This patches laravel/view.php to restore that data and even print out some context to the error:

Since this prints unparsed source code, production apps should include E_RECOVERABLE_ERROR (along with notices and warnings) in the 'ignore' parameter of `application/config/error.php`.

If someone wants to refine this some more to make it more core-worthy, please do!

Signed-off-by: Kelly Banman