add vendor id filter
This commit is contained in:
parent
7cc7c2e546
commit
5790dc8a7b
1 changed files with 9 additions and 0 deletions
|
|
@ -218,6 +218,15 @@ abstract class QueryFilters
|
|||
return $this->builder->where('client_id', $this->decodePrimaryKey($client_id));
|
||||
}
|
||||
|
||||
public function vendor_id(string $vendor_id = '') :Builder
|
||||
{
|
||||
if (strlen($vendor_id) == 0) {
|
||||
return $this->builder;
|
||||
}
|
||||
|
||||
return $this->builder->where('vendor_id', $this->decodePrimaryKey($vendor_id));
|
||||
}
|
||||
|
||||
public function filter_deleted_clients($value)
|
||||
{
|
||||
if ($value == 'true') {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue