//Controller code
Route::post('/user/profile', function () {
// ...
return redirect('dashboard')->with('status', 'Profile updated!');
});
//view code
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
</div>
@endif