laravel order by raw

56

laravel order by raw -

$orders = DB::table('orders')
                ->orderByRaw('updated_at - created_at DESC')
                ->get();

Comments

Submit
0 Comments