update for last commit

This commit is contained in:
Manish Verma
2016-10-20 18:54:49 +05:30
parent 98a6bd7b42
commit ee1de58cdc

View File

@@ -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());
}
}