A
A
aglgl2019-03-27 17:25:04
JavaScript
aglgl, 2019-03-27 17:25:04

Validation of fields on the client?

Good afternoon, the crux of the matter.
In yii2 there is js field validation when filling out of the box.
In laravel, as I understood from the box, there is nothing like that, and the only third-party that I found is proengsoft/laravel-jsvalidation.
In principle, it works and is quite good, and even checks unique on the fly, which is not the case in yii2.
Are there any other options or is this the only humane solution not to write the same rules on the client and on the server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Dergachov, 2019-03-27
@aglgl

You can send data via ajax and see the validation response on the client, in principle, proengsoft / laravel-jsvalidation is quite enough.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question