app/Http/Controllers/Admin/BiograpyController.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)
    {
        $title = $request->input('title');
        $sub_title = $request->input('sub_title');
        $desc = $request->input('desc');
        $desc1 = $request->input('desc1');
        Biograpy::find($id)->update([
            'biograpy_title' => $title,
            'biograpy_sub_title' => $sub_title,
            'biograpy_desc' => $desc,
            'biograpy_desc1' => $desc1,
        ]);
        return redirect()->to("adminpages/biograpy");
    }
public function update ( Request $ request , $ id ) { $ title = $ request -> input ( 'title' ) ; $ sub_title = $ request -> input ( 'sub_title' ) ; $ desc = $ request -> input ( 'desc' ) ; $ desc1 = $ request -> input ( 'desc1' ) ; Biograpy :: find ( $ id ) -> update ( [ 'biograpy_title' => $ title , 'biograpy_sub_title' => $ sub_title , 'biograpy_desc' => $ desc , 'biograpy_desc1' => $ desc1 , ] ) ; return redirect ( ) -> to ( " adminpages/biograpy " ) ; }
Update the specified resource in storage.
Update the specified resource in storage .