laravel/framework — pull request #3046 by fedeisas (2013-12-25 17:36:43+00:00)
Title: Fix Router.php to behave on App::error

When App::error is triggered, Route is empty. When you try to access Route::currentRouteNamed($string), it fails because Route::current() is empty and does not have a getName() method.