diff --git a/app/Http/Controllers/Frontend/UserController.php b/app/Http/Controllers/Frontend/UserController.php index f5ee2fca6..a9b1d6ebc 100644 --- a/app/Http/Controllers/Frontend/UserController.php +++ b/app/Http/Controllers/Frontend/UserController.php @@ -173,7 +173,7 @@ public function profileUpdate(Request $request) if ($id !== auth()->user()->id) { return redirect()->route('frontend.users.profile', encode_id($id)); } - + $request->validate([ 'first_name' => 'required|string|max:191', 'last_name' => 'required|string|max:191', @@ -188,7 +188,7 @@ public function profileUpdate(Request $request) } $$module_name_singular = $module_model::findOrFail($id); - + // Handle Avatar upload if ($request->hasFile('avatar')) { if ($$module_name_singular->getMedia($module_name)->first()) {