mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-11-30 22:20:45 +00:00
26 lines
486 B
PHP
26 lines
486 B
PHP
<?php
|
|
|
|
namespace App\Filters;
|
|
|
|
class GoodsFilter extends Filters
|
|
{
|
|
protected function goodsTitle($value)
|
|
{
|
|
return $this->builder->where('title', 'like', "%$value%");
|
|
}
|
|
|
|
protected function typeId($value)
|
|
{
|
|
if($value){
|
|
return $this->builder->where('type_id', '=', $value);
|
|
}
|
|
}
|
|
|
|
protected function brandId($value)
|
|
{
|
|
if($value){
|
|
return $this->builder->where('brand_id', '=', $value);
|
|
}
|
|
}
|
|
}
|