original_string: public function update(Request $request, Product $itemgroup)
  	{
  		$itemgroup->groupWith(
  			$request->get('associates')
  		);
  
  		return redirect()
  			->route('itemgroup.edit', $itemgroup)
  			->with('status', trans('globals.success_text'));
  	}
code: public function update(Request $request, Product $itemgroup)
  	{
  		$itemgroup->groupWith(
  			$request->get('associates')
  		);
  
  		return redirect()
  			->route('itemgroup.edit', $itemgroup)
  			->with('status', trans('globals.success_text'));
  	}
code_tokens: public function update ( Request $ request , Product $ itemgroup ) { $ itemgroup -> groupWith ( $ request -> get ( 'associates' ) ) ; return redirect ( ) -> route ( 'itemgroup.edit' , $ itemgroup ) -> with ( 'status' , trans ( 'globals.success_text' ) ) ; }
docstring: Updates the given product grouping.
  
  @param  Request $request
  @param  Product $itemgroup
  
  @return void
docstring_tokens: Updates the given product grouping .