app/Http/Controllers/Permissions/UserController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\User  $users
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, User $user)
    {
        $user->update($request->all());
        $user->roles()->sync($request->get('roles'));
        return redirect()->route('users.edit', $user->id)
                         ->with('info', 'Usuario actualizado exitosamente');
    }
public function update ( Request $ request , User $ user ) { $ user -> update ( $ request -> all ( ) ) ; $ user -> roles ( ) -> sync ( $ request -> get ( 'roles' ) ) ; return redirect ( ) -> route ( 'users.edit' , $ user -> id ) -> with ( 'info' , 'Usuario actualizado exitosamente' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .
//actulizar el usuario //actulizar el roles //respuesta