app/Http/Controllers/UserAvatarController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\User  $user
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(UserAvatarRequest $request, User $user)
    {
        $this->authorize('update', $user);
        $user->update($request->validated());
    }
public function update ( UserAvatarRequest $ request , User $ user ) { $ this -> authorize ( 'update' , $ user ) ; $ user -> update ( $ request -> validated ( ) ) ; }
Update the specified resource in storage.
Update the specified resource in storage .