public function updateConfigurationValidationFailed(array $messages)
    {
        if (request()->ajax()) {
            return response()->json($messages);
        }

        $url = URL::previous();

        return $this->redirectWithErrors($url, $messages);
    }