app/Http/Controllers/VentasController.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)
    {
        $this -> setValidator($request, Ventas::reglasValidacion(),[])->validate();
        Ventas::create($request->all());
        return redirect()->route('ventas.index');
    }
public function store ( Request $ request ) { $ this -> setValidator ( $ request , Ventas :: reglasValidacion ( ) , [ ] ) -> validate ( ) ; Ventas :: create ( $ request -> all ( ) ) ; return redirect ( ) -> route ( 'ventas.index' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .