Skip to content

Form Requests

albertmoreno edited this page Mar 17, 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.

Clone this wiki locally