state = array_merge([ 'email' => $user->email, ], $user->withoutRelations()->toArray()); } /** * Update the user's profile information. * * @return \Illuminate\Http\RedirectResponse|null */ public function updateProfileInformation(UpdatesUserProfileInformation $updater) { $this->resetErrorBag(); $updater->update( Auth::user(), $this->photo ? array_merge($this->state, ['photo' => $this->photo]) : $this->state ); if (isset($this->photo)) { return redirect()->route('profile.show'); } $this->dispatch('saved'); $this->dispatch('refresh-navigation-menu'); } /** * Delete user's profile photo. * * @return void */ public function deleteProfilePhoto() { Auth::user()->deleteProfilePhoto(); $this->dispatch('refresh-navigation-menu'); } /** * Sent the email verification. * * @return void */ public function sendEmailVerification() { Auth::user()->sendEmailVerificationNotification(); $this->verificationLinkSent = true; } /** * Get the current user of the application. * * @return mixed */ public function getUserProperty() { return Auth::user(); } }; ?> {{ __('Profile Information') }} {{ __('Update your account\'s profile information and email address.') }} {{-- Profile Photo --}}
{{-- Profile Photo File Input --}} {{-- Current Profile Photo --}}
{{ $this->user->name }}
{{-- New Profile Photo Preview --}} {{ __('Select A New Photo') }} @if ($this->user->profile_photo_path) {{ __('Remove Photo') }} @endif @if ($errors->has('photo') && is_array($errors->get('photo')))

{{ $errors->get('photo')[0] }}

@endif
{{-- Name --}}
{{-- Email --}}
@if ( ! config('investbrain.self_hosted') && Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::emailVerification()) && ! $this->user->hasVerifiedEmail() )

{{ __('Your email address is unverified.') }}

@if ($this->verificationLinkSent)

{{ __('A new verification link has been sent to your email address.') }}

@endif @endif
{{ __('Saved.') }} {{ __('Save') }}