-2
I have the following problem in the Windows view $message
is undefined in the whole variable $message
and standard at least as indicated in the documentation in the validation part of Forms Blade
@error('cpf_cnpj')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
Error
How can I this fixed this error?
where it says in the documentation that $message is always available?
– gmsantos
I think you’ve got the wrong idea https://laravel.com/docs/5.7/views#Passing-data-to-views https://laravel.com/docs/5.7/validation#named-error-bags
– Marcos Xavier
When returning to the view you are not informing the
$message
, has how to show more information about your login function ?– Ricardo Lucas
in case I used make:auth to create templates and controlles.
– Richard Aguiar
What version of Laravel?
– Kayo Bruno
Try using the
$errors->all()
to catch all the mistakes, then you make aforeach
and displayed each one.– Kayo Bruno
@Kayo Bruno what happened was the following agent was working on the version 6 of the Laravel and was working all right then agent I go to the 5.8 then Blade stopped recognizing the validations.
– Richard Aguiar