Create a Model Product (for example) for your table, then select the data like :
Product::get(["product_item","head_count"]);
That will return a Collection of Product objects.
[
{
"product_item": 400,
"head_count": 2
},
{
"product_item": 401,
"head_count": 5
}
]
NOTE: If your table name is products you don't need to add the name of the table to your model since the Product is the singular of your table name, what means you're following conventions and laravel will detect the related table automatically.
Else you need to add the table name at the top of your Model Product.php like :
class Product extends Model
{
protected $table = 'products';
}