PHP Class Flugg\Responder\Exceptions\Handler

Inheritance: extends Illuminate\Foundation\Exceptions\Handler, use trait Flugg\Responder\Traits\HandlesApiErrors
Show file Open project: flugger/laravel-responder

Public Methods

Method Description
render ( Illuminate\Http\Request $request, Exception $exception ) : Illuminate\Http\Response | Illuminate\Http\JsonResponse Render an exception into an HTTP response.

Method Details

render() public method

Render an exception into an HTTP response.
public render ( Illuminate\Http\Request $request, Exception $exception ) : Illuminate\Http\Response | Illuminate\Http\JsonResponse
$request Illuminate\Http\Request
$exception Exception
return Illuminate\Http\Response | Illuminate\Http\JsonResponse