app/Http/Controllers/OrdenController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Orden  $orden
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, $id)
    {
        try {
            $orden = Orden::findOrFail($id);
            $orden->mesa_id = $request->mesa_id;
            $orden->estado_servicio=$request->estado_servicio;
            $orden->update();
            return redirect()->action('OrdenController@index');
        } catch (Exception $e) {
        }
    }
public function update ( Request $ request , $ id ) { try { $ orden = Orden :: findOrFail ( $ id ) ; $ orden -> mesa_id = $ request -> mesa_id ; $ orden -> estado_servicio = $ request -> estado_servicio ; $ orden -> update ( ) ; return redirect ( ) -> action ( 'OrdenController@index' ) ; } catch ( Exception $ e ) { } }
Update the specified resource in storage.
Update the specified resource in storage .