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(); } }