app/Http/Controllers/__Old__/__ProductController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(UpdateProductRequest $request, $id)
    {
        Product::find($id)->update($request->all());
        return redirect()->route('products.index')
                        ->with('success','Product updated successfully');
    }
public function update ( UpdateProductRequest $ request , $ id ) { Product :: find ( $ id ) -> update ( $ request -> all ( ) ) ; return redirect ( ) -> route ( 'products.index' ) -> with ( 'success' , 'Product updated successfully' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .