diff --git a/resources/views/fields/avatar.blade.php b/resources/views/fields/avatar.blade.php index dd368d0356..94505ef267 100644 --- a/resources/views/fields/avatar.blade.php +++ b/resources/views/fields/avatar.blade.php @@ -19,14 +19,14 @@ @if ($user->avatar && $deleteMethod) @endif
- + buttonLabel = $label; + return $this; + } + /** * @return static */ diff --git a/src/Http/Livewire/Profile.php b/src/Http/Livewire/Profile.php index d15df2a00a..4900b13628 100644 --- a/src/Http/Livewire/Profile.php +++ b/src/Http/Livewire/Profile.php @@ -101,14 +101,13 @@ class Profile extends Component ->extraAttributes([ 'required' => 'true', 'autocomplete' => 'email', - ]), - ]), + ]), + ]), Avatar::make('avatar') ->label('User Photo') ->avatar($this->avatar) ->user($this->user) - ->deleteMethod('deleteAvatar') - ->hint(__('Optional')), + ->deleteMethod('deleteAvatar'), Fieldset::make('Update Password') ->fields([ Text::make('password')