1// Laravel 5
2return redirect()->back()->withInput();
3// Laravel 6,7, 8
4return back()->withInput();
1Route::post('user/profile', function () {
2 // Update the user's profile...
3
4 return redirect('dashboard')->with('status', 'Profile updated!');
5});