Closed distantnative closed 3 years ago
'myNumberField' => function ($model) { return $model->myNumberField()->toFloat(); } 'myVirtualNumberField' => function ($model) { return $model-> myNumberField()->toInt() + 5; } 'myDate' => function ($model) { return $model-> anyDateField()->toTimestamp(); }
especially pointing out how they can be used for different formats for Algolia
✅ Will be included in the docs alongside 1.1.0 release this week.
especially pointing out how they can be used for different formats for Algolia