laravel eloquent order by raw 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();