app/Http/Controllers/Settings/ProfileController.php
/**
     * Update the user's profile information.
     *
     * @param \Illuminate\Http\Request $request
     * @return \Illuminate\Http\Response
     * @throws \Illuminate\Validation\ValidationException
     */
Update the user's profile information.
Update the user ' s profile information .
public function update(Request $request)
    {
        $user = $request->user();
        $this->validate($request, [
            'name' => 'required',
        ]);
        return tap($user)->update($request->all());
    }
public function update ( Request $ request ) { $ user = $ request -> user ( ) ; $ this -> validate ( $ request , [ 'name' => 'required' , ] ) ; return tap ( $ user ) -> update ( $ request -> all ( ) ) ; }
Update the user's profile information.
Update the user ' s profile information .