Level 11
You mean like this:
'files' => ['required'],
'files.*' => ['max:2048', 'mimes:jpg,png,jpeg,pdf,docx'], // You can add more rules as needed.
Blade:
@foreach ($errors->all() as $error)
<div>{{ $error }}</div>
@endforeach
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Is it possible to display multiple validation errors for a file input
'files'=>['required'],
'files.*'=>['max:2048']
How to display validation errors for the second rule
Please or to participate in this conversation.