app/Http/Controllers/MesaController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request)
    {
        try {
          $mesa = new Mesa($request->all());
          if($mesa->save()){
            return redirect()->action('MesaController@index');
          }
        } catch (Exception $e) {
        }
    }
public function store ( Request $ request ) { try { $ mesa = new Mesa ( $ request -> all ( ) ) ; if ( $ mesa -> save ( ) ) { return redirect ( ) -> action ( 'MesaController@index' ) ; } } catch ( Exception $ e ) { } }
Store a newly created resource in storage.
Store a newly created resource in storage .