amrnn90 / laravel-cursor-paginator

Cursor pagination for Laravel
MIT License
18 stars 6 forks source link

fix: use built-in where function #25

Open jaulz opened 3 years ago

jaulz commented 3 years ago

Currently, I face a lot of issues (operator does not exist) because Postgres requires correct types (e.g. you cannot compare a string with a timestamp). Using this PR the conversions will be applied via Eloquent directly. In my opinion it also makes the where condition easier to read.