public function isValidQuantity($quantity) { if ($this->isPositive($quantity)) { return true; } $message = Lang::get('inventory::exceptions.InvalidQuantityException', ['quantity' => $quantity]); throw new InvalidQuantityException($message); }