app/Http/Controllers/MesaController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Mesa  $mesa
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, Mesa $mesa)
    {
      try {
        $mesa->codigo_mesa=$request->codigo_mesa;
        $mesa->capacidad_personas=$request->capacidad_personas;
        if($mesa->update()){
          return redirect()->action('MesaController@index');
        }
      } catch (Exception $e) {
      }
    }
public function update ( Request $ request , Mesa $ mesa ) { try { $ mesa -> codigo_mesa = $ request -> codigo_mesa ; $ mesa -> capacidad_personas = $ request -> capacidad_personas ; if ( $ mesa -> update ( ) ) { return redirect ( ) -> action ( 'MesaController@index' ) ; } } catch ( Exception $ e ) { } }
Update the specified resource in storage.
Update the specified resource in storage .