Level 31
@panthro yes, that will work.
https://laravel.com/docs/10.x/redirects#redirecting-with-flashed-session-data
Just make sure that the blade file that your route 'somewhere.index' goes to, has the check to show the flash message
@if (session('message'))
<div class="alert alert-success">
{{ session('message') }}
</div>
@endif
1 like