app/Http/Controllers/ManoDeObraController.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)
    {
        $mano_de_obra= new mano_de_obra();
        $mano_de_obra->id=$request->id;
        $mano_de_obra->tipo_labor=$request->tipo_labor;
        $mano_de_obra->tiempo=$request->tiempo;
        $mano_de_obra->costo=$request->costo;
        $mano_de_obra->save();
        return redirect()->route('mano_de_obra.index');
    }
public function store ( Request $ request ) { $ mano_de_obra = new mano_de_obra ( ) ; $ mano_de_obra -> id = $ request -> id ; $ mano_de_obra -> tipo_labor = $ request -> tipo_labor ; $ mano_de_obra -> tiempo = $ request -> tiempo ; $ mano_de_obra -> costo = $ request -> costo ; $ mano_de_obra -> save ( ) ; return redirect ( ) -> route ( 'mano_de_obra.index' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
//