Posted: 29-04-2017

Eloquent Tips - orderByRaw

Simple example about how to use orderByRaw in Eloquent query.

->orderByRaw('(updated_at - created_at) desc')