app/Http/Controllers/LoginController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Models\User  $user
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request)
    {
        DB::table('users')
              ->where('id', $request->id_user)
              ->update(['name' => $request->name,
              'email' => $request->email,
              'username' => $request->username,
              'password' => bcrypt($request->password)]);
        return redirect()->route('admin')
                        ->with('success','User Berhasil Diupdate !');
    }
public function update ( Request $ request ) { DB :: table ( 'users' ) -> where ( 'id' , $ request -> id_user ) -> update ( [ 'name' => $ request -> name , 'email' => $ request -> email , 'username' => $ request -> username , 'password' => bcrypt ( $ request -> password ) ] ) ; return redirect ( ) -> route ( 'admin' ) -> with ( 'success' , 'User Berhasil Diupdate !' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .