app/Http/Controllers/Admin/TitlePriceController.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');
            TitlePrice::find($id)->update([
                'tp_title' => $title,
                'tp_sub_title' => $sub_title,
            ]);
            return redirect()->to("adminpages/pricetitle");
    }
public function update ( Request $ request , $ id ) { $ title = $ request -> input ( 'title' ) ; $ sub_title = $ request -> input ( 'sub_title' ) ; TitlePrice :: find ( $ id ) -> update ( [ 'tp_title' => $ title , 'tp_sub_title' => $ sub_title , ] ) ; return redirect ( ) -> to ( " adminpages/pricetitle " ) ; }
Update the specified resource in storage.
Update the specified resource in storage .