public function attributes() { // add related fields to searchable attributes return array_merge(parent::attributes(), ['partner_id', 'timestamp_to', 'created_at_to', 'updated_at_to']); }