From ffbfa03d38cea1cd3588711590282fc44dcd4ea7 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Thu, 16 May 2024 17:30:52 +0000 Subject: [PATCH] Apply fixes from StyleCI --- app/Http/Controllers/Frontend/UserController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()) {