-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined method 'withQueryString' #1278
Comments
Any update with this issue? Got the same problem unfortunately :( |
I have got the same problem. |
Same issue here |
Same issue here as well. |
me too. |
Same for me |
+1 |
wow, today 25 may 2022 and still face this problem |
+1 |
1 similar comment
+1 |
Same issue |
It's been 6 months, time to get a different plugin i guess |
🔴 Problem
🟢 Solution
here's how: $users = User::query()
->paginate(15)
->appends($request->all()); other way: ->appends(['search' => $request->search]);
->appends($request->only('search')); 🔗 Reference |
Another way to fix this, which works if you don't have acces to the request object anymore
|
Has same problem with toArray due to it returning the contract and not the class which implements the Arrayable interface. |
The same issue persists. I'm going with #1278 (comment) for now. |
Still facing this issue ! |
Wow, happy new year. The problem that started in 2021 is still with us in 2025. |
This minor issue will be solved by my contribution to the Laravel project in the near future. |
@dvlpr91 Can you share with us the link to your contribution ? |
|
Unfortunately, this is not going to be fixed. I've been asked to request a merge to the next version of the branch because of compatibility issues. However, I won't do it because I can't be bothered. 10 years later, let's try again. |
It's harder to wait 10 years, so I just did it up front. If this PR is rejected, I'll give up. |
Sleep well tonight. It's 2025, and the problem is finally fixed. This issue should resolve itself later this month with the release of version 12. If you don't upgrade to version 12, you'll have to use phpdoc to fix it. |
@dvlpr91 Thank you 🙏 I really appreciate it. |
Versions:
Description:
Undefined method 'withQueryString'.intelephense(1013)
Steps To Reproduce:
Just fresh Laravel app
The text was updated successfully, but these errors were encountered: