mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
174992cc65
edit create package list api
21 lines
418 B
PHP
21 lines
418 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\PackingLists\Services;
|
|
|
|
use App\Models\Order;
|
|
|
|
class ChecksIfPackingListReferenceNumberExists
|
|
{
|
|
|
|
private $repository;
|
|
|
|
public function __construct(Order $repository)
|
|
{
|
|
$this->repository = $repository;
|
|
}
|
|
|
|
public function execute(string $reference_number): bool {
|
|
return $this->repository->where('reference', $reference_number)->exists();
|
|
}
|
|
|
|
} |