I need to check if a record is unique in it's collection but not only by id. I need to check the uniqueness in combination with the value from another field too.
For that I made a custom rule with
php artisan make:rule MyRule
Basically I followed this example: https://benfurfie.co.uk/articles/adding-custom-validation-rules-to-statamic-3
but the rule is not visible in the dropdown.
I am using Statamic pro v3.3.59 and Laravel 9.42.2
I need to check if a record is unique in it's collection but not only by id. I need to check the uniqueness in combination with the value from another field too. For that I made a custom rule with
php artisan make:rule MyRule
Basically I followed this example: https://benfurfie.co.uk/articles/adding-custom-validation-rules-to-statamic-3 but the rule is not visible in the dropdown.I am using Statamic pro v3.3.59 and Laravel 9.42.2