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