Question : laravel redirect back with input
Answered by : snippets
// Laravel 5
return redirect()->back()->withInput();
// Laravel 6,7, 8
return back()->withInput();
Source : | Last Update : Sun, 12 Sep 21
Question : return redirect with message laravel
Answered by : drpaashaas
Route::post('user/profile', function () { // Update the user's profile... return redirect('dashboard')->with('status', 'Profile updated!');
});
Source : https://laravel.com/docs/7.x/redirects | Last Update : Mon, 02 Nov 20
Question : laravel redirect back with errors and input
Answered by : lennox-omondi
return redirect()->back()->withInput();
Source : https://stackoverflow.com/questions/31081644/how-to-redirect-back-to-form-with-input-laravel-5 | Last Update : Tue, 10 Nov 20
Question : redirect back with input laravel in request
Answered by : jrmew
// class ExampleRequest
public function response(array $errors): RedirectResponse
{ return Redirect::back()->withErrors($errors)->withInput();
}
Source : https://stackoverflow.com/questions/34598209/redirect-back-with-errors-and-input-in-custom-request-class-laravel-5 | Last Update : Tue, 26 Oct 21
Question : laravel return redirect back with input except one filed
Answered by : inquisitive-ibis-0a69pgfkq5dm
return back()->withInput($request->except('answer'))->withError('je antwoord is niet correct!');
Source : | Last Update : Mon, 25 Jul 22