using redirect back() in exception handler in laravel code example Example: laravel redirect back with errors and input return redirect()->back()->withInput();