mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 06:30:49 +00:00
24 lines
447 B
PHP
24 lines
447 B
PHP
<?php
|
|
|
|
namespace App\Filters;
|
|
|
|
class GroupsFilter extends Filters
|
|
{
|
|
protected function title($value)
|
|
{
|
|
return $this->builder->where('title', 'like', "%$value%");
|
|
}
|
|
|
|
protected function shopId($value)
|
|
{
|
|
if ($value) {
|
|
return $this->builder->where('shop_id', '=', $value);
|
|
}
|
|
}
|
|
|
|
protected function status($value)
|
|
{
|
|
return $this->builder->where('status', '=', $value);
|
|
}
|
|
}
|