vendredi 9 novembre 2018

Storing state in Laravel rule?

I'm trying to write a Rule in Laravel for verifying whether an address is deliverable.

Now, the API I use stores the result of an address check, and returns an address object as well as the ID. If the form passes validation, I'd like to store the address ID without verifying it again.

If I were to do the address check within a rule, how would I store that object from the validator function?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire