This repository was archived by the owner on Mar 20, 2025. It is now read-only.
This repository was archived by the owner on Mar 20, 2025. It is now read-only.
Do not apply the orderByDesc fix on Eloquent object if it uses Scout Driver #15
Open
Description
- 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