You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
Your library is a perfect solution for resolving search criteria via URI, but it has some bugs.
Preconditions:
PHP 8.2
slim/slim-skeleton
illuminate/database
illuminate/http
illuminate/pagination
illuminate/validation
robmorgan/phinx
unlu/laravel-api-query-builder
Issues:
Query without indicating parameters returns error:
Paginator object, retrieved from Method \Unlu\Laravel\Api\QueryBuilder::paginate() contains incorrect items:
The text was updated successfully, but these errors were encountered:
BlackMaizeGod
changed the title
Method \Unlu\Laravel\Api\QueryBuilder::paginate() does nto works
Method \Unlu\Laravel\Api\QueryBuilder::paginate() does not work
Jun 29, 2023
BlackMaizeGod
pushed a commit
to BlackMaizeGod/laravel-api-query-builder
that referenced
this issue
Jun 29, 2023
- Changed return value from null to empty string in `UriParser::setQueryUri` method, if query params were not pass. It needs, so that `Paginator::setQueryUri` str_replace get empty string instead of `null` and does not crash.
BlackMaizeGod
pushed a commit
to BlackMaizeGod/laravel-api-query-builder
that referenced
this issue
Jun 29, 2023
- Added additional step for identification current page before processing pagination query in the `QueryBuilder::basePaginate` method. It needs, because the `QueryBuilder::basePaginate` is private and is called only once and only in this class. The method calls without `$page` parameter passing, so that the `$page` will always be `1` and the `Paginator::items` will have incorrect items.
Hi there,
Your library is a perfect solution for resolving search criteria via URI, but it has some bugs.
Preconditions:
PHP 8.2
slim/slim-skeleton
illuminate/database
illuminate/http
illuminate/pagination
illuminate/validation
robmorgan/phinx
unlu/laravel-api-query-builder
Issues:
Method \Unlu\Laravel\Api\QueryBuilder::paginate()
contains incorrect items:The text was updated successfully, but these errors were encountered: