SmsTemplateSearch.php 805 B

12345678910111213141516171819
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CatchAdmin [Just Like ~ ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2017~2020 http://catchadmin.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
  8. // +----------------------------------------------------------------------
  9. // | Author: JaguarJack [ njphper@gmail.com ]
  10. // +----------------------------------------------------------------------
  11. namespace catchAdmin\sms\model\search;
  12. trait SmsTemplateSearch
  13. {
  14. public function searchOperatorAttr($query, $value, $data)
  15. {
  16. return $query->where('operator', $value);
  17. }
  18. }