From ee1de58cdcf790c502ed33176b05a8b5742a7d42 Mon Sep 17 00:00:00 2001 From: Manish Verma Date: Thu, 20 Oct 2016 18:54:49 +0530 Subject: [PATCH] update for last commit --- app/Http/Controllers/Client/helpdesk/GuestController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Controllers/Client/helpdesk/GuestController.php b/app/Http/Controllers/Client/helpdesk/GuestController.php index ba7b2830f..2ba461c70 100644 --- a/app/Http/Controllers/Client/helpdesk/GuestController.php +++ b/app/Http/Controllers/Client/helpdesk/GuestController.php @@ -113,10 +113,13 @@ class GuestController extends Controller $user->mobile = null; } if ($user->save()) { + return redirect()->back()->with('success', Lang::get('lang.Profile-Updated-sucessfully')); } else { + return redirect()->back()->route('profile')->with('fails', Lang::get('lang.Profile-Updated-sucessfully')); } } catch (Exception $e) { + return redirect()->back()->route('profile')->with('fails', $e->getMessage()); } }