企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## whereNotNull 方法筛选给定键不为 NULL 的项: whereNotNull 方法筛选给定键不为 NULL 的项: ``` $collection = collect([ ['name' => 'Desk'], ['name' => null], ['name' => 'Bookcase'], ]); $filtered = $collection->whereNotNull('name'); $filtered->all(); /* [ ['name' => 'Desk'], ['name' => 'Bookcase'], ] */ ```