Laravel’s query builder offers a nice way to work with raw SQL. We can use them in our where conditions and also in our orderings as well. Let’s see some examples where we can use raw SQL to implement custom logic for ordering the results.
Be nice in comments. Your opinion may differ from others but express them respectfully.
Abusive or offensive comments will be removed without any notice.