# User Profile

The user is able to change update his profile information.

The profile can be accessed by a logged in user by clicking User Profile from the sidebar or adding user-profile in the url. The user can add information like phone number, location, description or change the name and email

The `App/Http/Controllers/ProfileController.php` handles the user's profile information.

                    public function update()
                    {

                        $user = request()->user();
                        $attributes = request()->validate([
                            'email' => 'required|email|unique:users,email,'.$user->id,
                            'name' => 'required',
                            'phone' => 'required|max:10',
                            'about' => 'required:max:150',
                            'location' => 'required'
                        ]);
                        auth()->user()->update($attributes);
                        return back()->withStatus('Profile successfully updated.');

                }