erp/app/Filters/GroupsFilter.php

24 lines
447 B
PHP
Raw Normal View History

2022-10-21 13:09:30 +08:00
<?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);
}
}