Do I need to insert the variable in sum(orderdets.quantity) into another variable?

```
$order =  Order::with('customer','product')
                 ->select(
                      'orders.id',
                      'orders.customer_id',
                      'orderdets.product_id',
                      DB::raw('SUM(orderdets.quantity)'))
                 ->get();

```