public function update(ProductsRequest $request, $item)
	{
		$this->products->update(
			$request->all(), $item
		);

		return back()->with('status', trans('globals.success_text'));
	}
public function update(ProductsRequest $request, $item)
	{
		$this->products->update(
			$request->all(), $item
		);

		return back()->with('status', trans('globals.success_text'));
	}
public function update ( ProductsRequest $ request , $ item ) { $ this -> products -> update ( $ request -> all ( ) , $ item ) ; return back ( ) -> with ( 'status' , trans ( 'globals.success_text' ) ) ; }
Updates the given product.

@param  ProductsRequest $request
@param  integer $item

@return void
Updates the given product .