Вход Регистрация
Файл: gapps/app/Exceptions/Handler.php
Строк: 72
<?php

namespace AppExceptions;

use 
Exception;
use 
IlluminateValidationValidationException;
use 
IlluminateAuthAccessAuthorizationException;
use 
IlluminateDatabaseEloquentModelNotFoundException;
use 
SymfonyComponentHttpKernelExceptionHttpException;
use 
IlluminateFoundationExceptionsHandler as ExceptionHandler;

class 
Handler extends ExceptionHandler
{
    
/**
     * A list of the exception types that should not be reported.
     *
     * @var array
     */
    
protected $dontReport = [
        
AuthorizationException::class,
        
HttpException::class,
        
ModelNotFoundException::class,
        
ValidationException::class,
    ];

    
/**
     * Report or log an exception.
     *
     * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
     *
     * @param  Exception  $e
     * @return void
     */
    
public function report(Exception $e)
    {
        
parent::report($e);
    }

    
/**
     * Render an exception into an HTTP response.
     *
     * @param  IlluminateHttpRequest  $request
     * @param  Exception  $e
     * @return IlluminateHttpResponse
     */
    
public function render($requestException $e)
    {
        return 
parent::render($request$e);
    }
}
Онлайн: 1
Реклама