Mysql ORDER BY FIELD #48592
Unanswered
omaresmael
asked this question in
Ideas
Replies: 1 comment
-
Just add a builder macro |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys
This my sql query sorts the records in the order specified by the values list
order by field (column, value1, value2)
currently, we can achieve this in laravel by using the
orderByRaw()
method and passing the field function to itI was thinking of creating a method to achieve the same result with a better API
something like
let me know if that is a good idea or not, so I can create a PR for it
thank you
stay awesome
Beta Was this translation helpful? Give feedback.
All reactions