/** * Changes the brand for the Inventory Item * * @param Request $supplier (Ajax) * @param Inventory $item * * @return boolean */ public function changeBrand(Request $supplier, Inventory $item) { if ($item->changeBrandTo($supplier->input('id'))) { return $this->getPossibleSuppliers($supplier); } return false; }