Laravel/PHP: Using whereIn to make a query for specific field of object

前端 未结 0 745
青春惊慌失措
青春惊慌失措 2021-02-06 02:56

I have a query that gives me an array of Product objects

$products = Product::where(\'id\', != $excludedId)->get();

// [ {id: 43, name: "Sunglasses"         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题