Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
<?php
namespace HiEvents\Services\Domain\Tax;
use HiEvents\Repository\Interfaces\TaxAndFeeRepositoryInterface;
class DuplicateTaxService
{
private TaxAndFeeRepositoryInterface $taxRepository;
public function __construct(TaxAndFeeRepositoryInterface $taxRepository)
{
$this->taxRepository = $taxRepository;
}
public function isDuplicate(string $name, int $accountId): bool
{
$existing = $this->taxRepository->findWhere([
'name' => $name,
'account_id' => $accountId,
]);
return $existing->isNotEmpty();
}
}