-
-
Notifications
You must be signed in to change notification settings - Fork 174
Form Requests
albertmoreno edited this page Mar 22, 2015
·
3 revisions
Yo also can use your FormRequest to create the Javascript validations.
$validator = JsValidator::formRequest('App\Http\Request\MyFormRequest');
$validator = JsValidator::formRequest('App\Http\Request\MyFormRequest', '#my-form');
First parameter is the fully qualified class name or instance of the FormRequest that you want to validate.
Second (optional) parameter is the JQuery form selector to find the form to validate.