Creating A Custom Exception Class And Custom Handler Class In Laravel 5.3
Answer : Laravel calls the render function of App\Exceptions\Handler class. So overriding it will not work. You have to add it in App\Exceptions\Handler class only. For example: <?php namespace App\Exceptions; use Exception; use Illuminate\Auth\AuthenticationException; use App\Project\Frontend\Repo\Vehicle\EloquentVehicle; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; class Handler extends ExceptionHandler { /** * A list of the exception types that should not be reported. * * @var array */ protected $dontReport = [ \Illuminate\Auth\AuthenticationException::class, \Illuminate\Auth\Access\AuthorizationException::class, \Symfony\Component\HttpKernel\Exception\HttpException::class, \Illuminate\Database\Eloquent\ModelNotFoundException::class, \Illuminate\Session\TokenMismatchException::class, \Illuminate\Validation\ValidationException::class, ]; /** * Report or log an except...