mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
22 lines
401 B
PHP
22 lines
401 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Transactions\Services;
|
|
|
|
|
|
use App\Models\Group;
|
|
|
|
class ChecksIfGroupTransactionBillNumberExists
|
|
{
|
|
|
|
private $repository;
|
|
|
|
public function __construct(Group $repository)
|
|
{
|
|
$this->repository = $repository;
|
|
}
|
|
|
|
public function execute(string $bill_no): bool {
|
|
return $this->repository->where('reference', $bill_no)->exists();
|
|
}
|
|
|
|
} |