Skip to content

Commit

Permalink
add new report helper
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Aug 3, 2017
1 parent b7e74b0 commit 2b67619
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Illuminate/Foundation/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Illuminate\Contracts\Auth\Access\Gate;
use Illuminate\Contracts\Routing\UrlGenerator;
use Illuminate\Foundation\Bus\PendingDispatch;
use Illuminate\Contracts\Debug\ExceptionHandler;
use Illuminate\Contracts\Routing\ResponseFactory;
use Illuminate\Contracts\Auth\Factory as AuthFactory;
use Illuminate\Contracts\View\Factory as ViewFactory;
Expand Down Expand Up @@ -641,6 +642,19 @@ function redirect($to = null, $status = 302, $headers = [], $secure = null)
}
}

if (! function_exists('report')) {
/**
* Report an exception.
*
* @param \Exception $e
* @return void
*/
function report($exception)
{
app(ExceptionHandler::class)->report($exception);
}
}

if (! function_exists('request')) {
/**
* Get an instance of the current request or an input item from the request.
Expand Down

0 comments on commit 2b67619

Please sign in to comment.