💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
## has方法 判断键值是否存在 判断集合中是否存在给定的键。 ~~~ $collection = collect(['account_id' => 1, 'product' => 'Desk']); $collection->has('product'); // true $collection->has('name'); // false ~~~