Skip to content
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

Do not apply the orderByDesc fix on Eloquent object if it uses Scout Driver #15

Open
abishekrsrikaanth opened this issue Aug 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@abishekrsrikaanth
Copy link

  • Laravel Version: 11.20.0
  • PHP Version: 8.3
  • Shift CLI Version: 0.2.9
  • Platform: Mac

Issue:

If an Eloquent Query using the search method of Laravel Scout to search results using the scout driver and if the same query also uses orderBy('column_name','DESC'), shift cli transforms this to orderByDesc('column_name').

The method orderByDesc doesn't exist when using the Scout Driver.

Command:

shift-cli
@abishekrsrikaanth abishekrsrikaanth added the bug Something isn't working label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant