app/Http/Controllers/AdventurerController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, $id)
    {
        $client = User::findorFail($id);
        $client->name = $request->input('name');
        $client->email = $request->input('email');
        $client->birthdate = $request->input('birthdate');
        $client->gender = $request->input('gender');
        $client->address = $request->input('address');
        $client->phone = $request->input('phone');
        $client->userabout = $request->input('describe');
        $client->save();
    }
public function update ( Request $ request , $ id ) { $ client = User :: findorFail ( $ id ) ; $ client -> name = $ request -> input ( 'name' ) ; $ client -> email = $ request -> input ( 'email' ) ; $ client -> birthdate = $ request -> input ( 'birthdate' ) ; $ client -> gender = $ request -> input ( 'gender' ) ; $ client -> address = $ request -> input ( 'address' ) ; $ client -> phone = $ request -> input ( 'phone' ) ; $ client -> userabout = $ request -> input ( 'describe' ) ; $ client -> save ( ) ; }
Update the specified resource in storage.
Update the specified resource in storage .