Replies: 1 comment
-
Hi, after debugging the code I found out that the query-builder config are not set up automaticly. This is my solution:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm developing a laravel package. I have this error when running phpunit on the package:
Spatie\QueryBuilder\Exceptions\InvalidFilterQuery: Requested filter(s) 'filter' are not allowed. Allowed filter(s) are 'id'
My json request is
http://localhost/post?filter[id]=1
I also tried to pass page
http://localhost/post?page=1
but also get the errorSpatie\QueryBuilder\Exceptions\InvalidFilterQuery: Requested filter(s) 'page' are not allowed. Allowed filter(s) are 'id'
https://github.com/plateena/demo repo to replicate the error
But when I'm using the package in the app, the error is gone and package work correctly.
Can someone help me?
Beta Was this translation helpful? Give feedback.
All reactions