Using @error directive to target the previous input field from multiple input fields after submit in Laravel 5.8
问题 The new @error directive was introduced in Laravel 5.8.13. So, instead of doing this: // old @if ($errors->has('email')) <span>{{ $errors->first('email') }}</span> @endif You can now do this // new @error('email') <span>{{ $message }}</span> @enderror However, I'm having issues trying to target only the input fields where the error was made among several similar input fields. These fields are similar because they have the same name. But they are also in seperate forms and have different