There is a document something.blade.php where there is a form.
There are 3 fields in the form: name['az'] , name['ru'] , name['en'] .
I send everything to the controller and validate. If the data did not fail, then it returns me to the same page and writes errors. If this is not an associative array, then it writes all the errors normally. And if associative, then output errors and old values does not work.
Here is the code snippet:
<label for="name['en']" class="col-md-4 col-form-label text-md-right">{{ __('Name EN') }}</label> <div class="col-md-6"> <input id="name['en']" type="text" class="form-control{{ $errors->has('name[\'en\']') ? ' is-invalid' : '' }}" name="name['en']" value="{{ old('name[\'en\']') }}" autofocus> @if ($errors->has('name[\'en\']')) <span class="invalid-feedback" role="alert"> <strong>{{ $errors->first('name[\'en\']') }}</strong> </span> @endif </div> As I understand it, the error is that I am giving the wrong values. If so, how to file? And if not, what's the matter?