Skip to content

Releases: tlikai/laravel-repository

1.0.5

02 Sep 06:15
3df522c
Compare
Choose a tag to compare

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` = " 北京";

1.0.4

23 Aug 11:56
3825175
Compare
Choose a tag to compare
Merge pull request #3 from boz14676/master

Fix params for findBy function.

1.0.3

23 Aug 11:18
a3a5703
Compare
Choose a tag to compare
  • findBy supported multiple conditions

1.0.2

18 Jun 09:36
ed82364
Compare
Choose a tag to compare

fix null key filter

1.0.1

15 Jan 03:37
Compare
Choose a tag to compare
  • use findOrFail instead find
  • fix findWhereIn

1.0.0

10 Jan 11:12
Compare
Choose a tag to compare
Update composer.json