app/Http/Controllers/PriceListController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Models\Users  $Users
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, $id)
    {
        $listData = request()->except(['_token','_method']);
        PriceList::where('id','=',$id)->update($listData);
        return redirect('home')->with('Mensaje','La lista ha sido modificada con éxito');
    }
public function update ( Request $ request , $ id ) { $ listData = request ( ) -> except ( [ '_token' , '_method' ] ) ; PriceList :: where ( 'id' , '=' , $ id ) -> update ( $ listData ) ; return redirect ( 'home' ) -> with ( 'Mensaje' , 'La lista ha sido modificada con éxito') ; }
Update the specified resource in storage.
Update the specified resource in storage .