update: laravel core files

This commit is contained in:
HDVinnie
2021-04-28 21:33:00 -04:00
parent d2cff31d43
commit 927ec9c924
6 changed files with 56 additions and 67 deletions
+7 -29
View File
@@ -24,11 +24,7 @@ class Handler extends ExceptionHandler
* @var array
*/
protected $dontReport = [
\Illuminate\Auth\AuthenticationException::class,
\Illuminate\Auth\Access\AuthorizationException::class,
\Illuminate\Validation\ValidationException::class,
\Symfony\Component\HttpKernel\Exception\HttpException::class,
\Illuminate\Database\Eloquent\ModelNotFoundException::class,
//
];
/**
@@ -37,38 +33,20 @@ class Handler extends ExceptionHandler
* @var array
*/
protected $dontFlash = [
'current_password',
'password',
'password_confirmation',
];
/**
* Report or log an exception.
*
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
*
* @param \Throwable $throwable
*
* @throws \Throwable
* Register the exception handling callbacks for the application.
*
* @return void
*/
public function report(Throwable $throwable)
public function register()
{
parent::report($throwable);
}
/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Throwable $throwable
*
* @throws \Throwable
*
* @return \Illuminate\Http\Response
*/
public function render($request, Throwable $throwable)
{
return parent::render($request, $throwable);
$this->reportable(function (Throwable $e) {
//
});
}
}