Open p4rad0xus opened 6 months ago
It seems to be working if you save the session manually.
public function store(Request $request): RedirectResponse
{
....
$request->session()->flash('message', "Some data");
$request->session()->save();
return back();
}
You can also use a Toast:
Toast::success('Saved successfully!');
Description:
On a Blade-Plage I want to show a Flash-Message after submitting a form. To do this I use the x-splade-flash component and generate in the controller the flash data. The form is a x-splade-form component and there I want to use the some options like stay, reset-on-success and @success.
If I don't use the option stay it shows me only the flash data over the session() method. If I use the option stay in the form component neither the x-splade-flash component nor the session() method shows the data.
Steps To Reproduce Issue:
My Blade-File
My Controller - store-Method