...

/

Using a Hook to Extend the Validator

Using a Hook to Extend the Validator

Learn how to use a hook to extend the validator by adding a custom rule.

We'll cover the following...

According to the Adonis documentation, hooks can be used to execute code at a specific time in the application lifecycle. We register hooks inside start/hooks.js.

Extending the validator

IndicativeIndicative ...