public function update(Request $request, Product $itemgroup)
	{
		$itemgroup->groupWith(
			$request->get('associates')
		);

		return redirect()
			->route('itemgroup.edit', $itemgroup)
			->with('status', trans('globals.success_text'));
	}
public function update(Request $request, Product $itemgroup)
	{
		$itemgroup->groupWith(
			$request->get('associates')
		);

		return redirect()
			->route('itemgroup.edit', $itemgroup)
			->with('status', trans('globals.success_text'));
	}
public function update ( Request $ request , Product $ itemgroup ) { $ itemgroup -> groupWith ( $ request -> get ( 'associates' ) ) ; return redirect ( ) -> route ( 'itemgroup.edit' , $ itemgroup ) -> with ( 'status' , trans ( 'globals.success_text' ) ) ; }
Updates the given product grouping.

@param  Request $request
@param  Product $itemgroup

@return void
Updates the given product grouping .