/**
  * Creates JsValidator instance based on FormRequest.
  *
  * @param $formRequest
  * @param null $selector
  *
  * @return Manager
  *
  * @throws FormRequestArgumentException
  */
 public function formRequest($formRequest, $selector = null)
 {
     if (!is_subclass_of($formRequest, 'Illuminate\\Foundation\\Http\\FormRequest')) {
         throw new FormRequestArgumentException((string) $formRequest);
     }
     if (is_string($formRequest)) {
         $formRequest = $this->createFormRequest($formRequest);
     }
     $rules = method_exists($formRequest, 'rules') ? $formRequest->rules() : [];
     $validator = $this->validator->make([], $rules, $formRequest->messages(), $formRequest->attributes());
     return $this->jsValidator($validator, $selector);
 }