public function attributes() { // Add related fields to searchable attributes return array_merge(parent::attributes(), ['entityModel.name']); }