From 57b028c80d432a2cff100f96161ce6d77fe2449b Mon Sep 17 00:00:00 2001 From: Geriano Date: Sun, 31 Jul 2022 13:17:08 +0700 Subject: [PATCH] fix bug can't update profile information --- app/Actions/Fortify/UpdateUserProfileInformation.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/Actions/Fortify/UpdateUserProfileInformation.php b/app/Actions/Fortify/UpdateUserProfileInformation.php index 79a7b8a..3aeef56 100644 --- a/app/Actions/Fortify/UpdateUserProfileInformation.php +++ b/app/Actions/Fortify/UpdateUserProfileInformation.php @@ -21,7 +21,6 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation Validator::make($input, [ 'name' => ['required', 'string', 'max:255'], 'email' => ['required', 'email', 'max:255', Rule::unique('users')->ignore($user->id)], - 'username' => ['required', 'max:255', Rule::unique('users')->ignore($user->id)], 'photo' => ['nullable', 'mimes:jpg,jpeg,png', 'max:1024'], ])->validateWithBag('updateProfileInformation'); @@ -36,7 +35,6 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation $user->forceFill([ 'name' => mb_strtolower($input['name']), 'email' => mb_strtolower($input['email']), - 'username' => mb_strtolower($input['username']), ])->save(); } }