App\Exceptions\OAuthExceptionHandler::serverError PHP Method

serverError() protected method

protected serverError ( League\OAuth2\Server\Exception\OAuthException $e ) : mixed
$e League\OAuth2\Server\Exception\OAuthException
return mixed
    protected function serverError(OAuthException $e)
    {
        return Response::make(['errors' => ['status' => '500', 'code' => 'ServerError', 'title' => 'Server Error', 'detail' => $e->getMessage()]], 500);
    }