for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* The file handle the errors.
*
* @link https://github.com/maab16
* @since 1.0.0
*/
namespace WPB\App\Exceptions;
use Throwable;
use WPB\Exceptions\Handler as ExceptionHandler;
* The exception handler.
* @author Md Abu Ahsan basir <[email protected]>
class Handler extends ExceptionHandler
{
* A list of the exception types that are not reported.
* @var array
protected $dont_report = [];
* A list of the inputs that are never flashed for validation exceptions.
protected $dont_flash = [
'password',
'password_confirmation',
];
* Report or log an exception.
* @param \Throwable $exception The throwable exception.
* @throws \Exception Throw the exception.
* @return void
public function report(Throwable $exception)
parent::report($exception);
}
* Render an exception into an HTTP response.
* @param \Illuminate\Http\Request $request The app http request.
* @throws \Throwable Throw the nexception.
* @return \Symfony\Component\HttpFoundation\Response
public function render($request, Throwable $exception)
return parent::render($request, $exception);