whereIsDefault(1); } // 筛选类型 public function scopeType($query, $type): void { $query->whereType($type); } }