Hey, I'm writing a book.  Eloquent Beyond The Basics

🔥 Laravel Tip: orderByRaw

Jan 8, 2023

You can pass a raw query to order your results by.

For example, sorting tasks by how long before the due date they were completed.
tip-image-0