App\Traits\RestExceptionHandlerTrait::internalError PHP Method

internalError() protected method

Return JSON response for internal error.
protected internalError ( string $message = 'Internal error', integer $statusCode = 500 ) : Illuminate\Http\JsonResponse
$message string
$statusCode integer
return Illuminate\Http\JsonResponse
    protected function internalError($message = 'Internal error', $statusCode = 500)
    {
        return $this->jsonResponse(['error' => $message], $statusCode);
    }