Beispiel #1
0
 /**
  * Test if form validator passes
  *
  * @return boolean
  */
 protected function valid(array $input)
 {
     // not pretty, but we have to put it here until php will allow closures in property defaults
     //        $v = $this->validator->resolve();
     //
     //        $v->sometimes('mail.host', 'required|max:500', function($input)
     //        {
     //            return $input->games >= 100;
     //        });
     return $this->validator->with($input)->passes();
 }
Beispiel #2
0
 /**
  * Test if form validator passes
  *
  * @return boolean
  */
 protected function valid(array $input)
 {
     return $this->validator->with($input)->passes();
 }