Redirect to route with data
Is it possible to redirect to a named route with data?
Something like:
return redirect()->route('homepage', ['message']);
I do not want to send the data as GET parameter, but as a variable.
Thanks
@SaeedPrez is right
return redirect('dashboard')->with('status', 'Profile updated!');
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
</div>
@endif
@kingpabel
Thanks for repeating/confirming my answer and pasting the documentation example I linked to, I don't know what I would have done without you :)
Without your post, he actually would have had to click once (OMG!) to get the exact same information.

$message = 'Your seial is '.rand(1, 100);
return redirect('/')->with('msg', $message);
Please or to participate in this conversation.