laravel/framework — pull request #3045 by fedeisas (2013-12-25 16:58:36+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.