コード例 #1
0
ファイル: MailForm.php プロジェクト: jeanfrancis/faxbox
 /**
  * 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();
 }
コード例 #2
0
ファイル: FaxForm.php プロジェクト: jeanfrancis/faxbox
 /**
  * Test if form validator passes
  *
  * @return boolean
  */
 protected function valid(array $input)
 {
     return $this->validator->with($input)->passes();
 }