Releases: tlikai/laravel-repository
Releases · tlikai/laravel-repository
1.0.5
Change FuzzySearch.
Diffrent from previous:
Old:
$this->userRepository->pushCriteria(new FuzzySearch('Jack', [ 'name', 'pinyin' ]));
$this->userRepository->pushCriteria(new AttributeSearch(['city' => '北京']));
// sql executed: select * from `users` where `name` LIKE "%Jack%" OR `pinyin` LIKE "%%Jack" AND `city` = " 北京";
New
$this->userRepository->pushCriteria(new FuzzySearch('Jack', [ 'name', 'pinyin' ]));
$this->userRepository->pushCriteria(new AttributeSearch(['city' => '北京']));
// sql executed: select * from `users` where (`name` LIKE "%Jack%" OR `pinyin` LIKE "%%Jack") AND `city` = " 北京";