Skip to content
This repository has been archived by the owner on Jan 17, 2020. It is now read-only.

Сломан вывод ошибок валидации. #80

Open
tweaker opened this issue May 4, 2017 · 1 comment
Open

Сломан вывод ошибок валидации. #80

tweaker opened this issue May 4, 2017 · 1 comment
Labels
Milestone

Comments

@tweaker
Copy link

tweaker commented May 4, 2017

Решение: ошибки валидации выводить все же как они есть (app/Exceptions/Handler.php):

    public function render($request, \Exception $exception)
    {
        $exception = $this->prepareException($exception);

        if ($exception instanceof ValidationException) {
            return $this->convertValidationExceptionToResponse($exception, $request);
        }

        $htmlAccepted = !$request->ajax() && $request->acceptsHtml();
@SerafimArts
Copy link
Member

Да по-хорошему надо вообще удалить и заново написать этот класс =\

@SerafimArts SerafimArts added the bug label May 4, 2017
@SerafimArts SerafimArts added this to the 2.0 milestone May 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants