芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/vendor/laravel/jetstream/src/Http/Livewire/UpdateProfileInformationForm.php
state = Auth::user()->withoutRelations()->toArray(); } /** * Update the user's profile information. * * @param \Laravel\Fortify\Contracts\UpdatesUserProfileInformation $updater * @return void */ 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->emit('saved'); $this->emit('refresh-navigation-menu'); } /** * Delete user's profile photo. * * @return void */ public function deleteProfilePhoto() { Auth::user()->deleteProfilePhoto(); $this->emit('refresh-navigation-menu'); } /** * Get the current user of the application. * * @return mixed */ public function getUserProperty() { return Auth::user(); } /** * Render the component. * * @return \Illuminate\View\View */ public function render() { return view('profile.update-profile-information-form'); } }