Cześć, mam pytanie odnośnie walidacji formularzy a dokładnie chodzi o wyświetlanie wiadomości dla użytkownika. Mianowice wyświetla mi się sesji alert "{"film_name":["Wymagane!!!"]} " a chciałbym wyświetlać wiadomość tylko pod inputem a nie w sesji. może ktoś wie jak pominąć wyświetlanie błędu w sesji.
$rules = [
'film_name' => 'required',
];
$customMessages = [
'film_name.required' => 'Wymagane!!!'
];
$this->validate($request, $rules, $customMessages);
@if (\Session::has('success'))
<div class="alert alert-success"> {!! \Session::get('success') !!}
@endif
@if (\Session::has('errors'))
<div class="alert alert-danger"> {!! \Session::get('errors') !!}
@endif
<input type="input" class="form-control" name="film_name" id="film_name" required> @error('film_name')
<div class="alert alert-danger">{{ $message }}
</div> @enderror