pineco.de
Implementing Custom Logic With Raw SQL In Laravel's Query Builder - Pine
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. Before we start, it’s important to understand, that ordering your …