Appearance
返回集合中给定键不为 null 的项目
$collection = collect([ ['name' => 'Desk'], ['name' => null], ['name' => 'Bookcase'], ])->whereNotNull('name'); /* [ ['name' => 'Desk'], ['name' => 'Bookcase'] ] */