Skip to content

Commit

Permalink
Merge pull request #597 from nasirkhan/analysis-nebZW1
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
nasirkhan authored May 16, 2024
2 parents 398cd3f + ffbfa03 commit 80443fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Frontend/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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()) {
Expand Down

0 comments on commit 80443fb

Please sign in to comment.