$validation = Validator::make($request, [
'email' => 'required'
]);
Does the same problem.
Also tried request class, it has the same problem.
Nothing returns $errors->all() is empty, flash messages get lost.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have problem with session flashes. When i return
Session::flash('message', 'test'); The message gets stored into session without problem.
Eveytime I do something like
Session::flash('message', 'test');
$request->validate([
'email' => 'required'
]);
The flash data gets lost and $errors->all() is empty.
Please or to participate in this conversation.