app/Http/Controllers/ProductController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Product  $product
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, Product $product)
    {
        $product->update($request->all());
        toastr()->success('Producto atualizado con exito!');
        return redirect()->route('products.index');
    }
public function update ( Request $ request , Product $ product ) { $ product -> update ( $ request -> all ( ) ) ; toastr ( ) -> success ( 'Producto atualizado con exito!' ) ; return redirect ( ) -> route ( 'products.index' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .