Cambios generales, a ver si volvemos al desarrollo

This commit is contained in:
2021-06-09 16:24:18 -04:00
parent 1632a2e51f
commit dbb80a9d4e
17 changed files with 314 additions and 520 deletions

View File

@@ -9,13 +9,7 @@ use Laravel\Lumen\Exceptions\Handler as ExceptionHandler;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Throwable;
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that should not be reported.
*
* @var array
*/
class Handler extends ExceptionHandler {
protected $dontReport = [
AuthorizationException::class,
HttpException::class,
@@ -23,32 +17,11 @@ class Handler extends ExceptionHandler
ValidationException::class,
];
/**
* Report or log an exception.
*
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
*
* @param \Throwable $exception
* @return void
*
* @throws \Exception
*/
public function report(Throwable $exception)
{
public function report(Throwable $exception) {
parent::report($exception);
}
/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Throwable $exception
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*
* @throws \Throwable
*/
public function render($request, Throwable $exception)
{
public function render($request, Throwable $exception) {
return parent::render($request, $exception);
}
}