From 420e8bc85a5008842542238c7fa8381237645cd1 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 18 Apr 2019 14:13:50 -0400 Subject: [PATCH] Allow phone number to be changed in Profile --- app/Http/Controllers/ProfileController.php | 3 +++ resources/views/account/profile.blade.php | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index daa10aa974..a255aa34b6 100755 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -49,6 +49,9 @@ class ProfileController extends Controller $user->last_name = $request->input('last_name'); $user->website = $request->input('website'); $user->gravatar = $request->input('gravatar'); + $user->phone = $request->input('phone'); + + if (!config('app.lock_passwords')) { $user->locale = $request->input('locale', 'en'); diff --git a/resources/views/account/profile.blade.php b/resources/views/account/profile.blade.php index 18a8287035..49e29b05a6 100755 --- a/resources/views/account/profile.blade.php +++ b/resources/views/account/profile.blade.php @@ -58,6 +58,15 @@ + +
+ +
+ + {!! $errors->first('phone', ':message') !!} +
+
+