Hello,
I need to do a redirect, check something, and then (possible) do another redirect.
Before each redirect, I add a different flash message.
So, in the component of the start.route, I have
request()->session()->flash('message', 'Redirection 1 with flash');
return redirect()->route('first.route');
Then, in the component of the first.route I have:
request()->session()->flash('message', 'Redirection 2 with flash');
return redirect()->route('second.route');
The problem is that the flash message is not present in the second.route request so I am not able to use it.
Is there any workaround for that?
Thank you for your time,