return redirect back with error e code example Example: laravel redirect back with errors and input return redirect()->back()->withInput();