Skip to content

Commit

Permalink
Add warning in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcastro committed Jun 20, 2019
1 parent 8ec8de4 commit 690068a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,11 @@ Post::isColumnValid(request('sort_by'));
Post::getTableColumns();
```

## Warning

Calling `select()` after `search()` will overwrite `sort_index` field, so it is recommended to call `select()`
before `search()` which is also the normal case.

## Credits

- Ray Anthony Madrona [@raymadrona](https://github.com/raymadrona), for the tips on using MySQL `LOCATE()` for sort relevance.
Expand Down

0 comments on commit 690068a

Please sign in to comment.