app/Http/Controllers/Admin/GraduetController.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)
    {
        $name = $request->input('name');
        $date = $request->input('date');
        $desc = $request->input('desc');
            Graduet::find($id)->update([
                'graduet_name' => $name,
                'graduet_date' => $date,
                'graduet_desc' => $desc,
            ]);
            return redirect()->to("adminpages/graduet");
    }
public function update ( Request $ request , $ id ) { $ name = $ request -> input ( 'name' ) ; $ date = $ request -> input ( 'date' ) ; $ desc = $ request -> input ( 'desc' ) ; Graduet :: find ( $ id ) -> update ( [ 'graduet_name' => $ name , 'graduet_date' => $ date , 'graduet_desc' => $ desc , ] ) ; return redirect ( ) -> to ( " adminpages/graduet " ) ; }
Update the specified resource in storage.
Update the specified resource in storage .