orderByRaw() laravel code example
Example: laravel order by raw
$orders = DB::table('orders')
->orderByRaw('updated_at - created_at DESC')
->get();
$orders = DB::table('orders')
->orderByRaw('updated_at - created_at DESC')
->get();