original_string: public function update(ProductsRequest $request, $item)
  	{
  		$this->products->update(
  			$request->all(), $item
  		);
  
  		return back()->with('status', trans('globals.success_text'));
  	}
code: public function update(ProductsRequest $request, $item)
  	{
  		$this->products->update(
  			$request->all(), $item
  		);
  
  		return back()->with('status', trans('globals.success_text'));
  	}
code_tokens: public function update ( ProductsRequest $ request , $ item ) { $ this -> products -> update ( $ request -> all ( ) , $ item ) ; return back ( ) -> with ( 'status' , trans ( 'globals.success_text' ) ) ; }
docstring: Updates the given product.
  
  @param  ProductsRequest $request
  @param  integer $item
  
  @return void
docstring_tokens: Updates the given product .