/** * 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(); }
/** * Test if form validator passes * * @return boolean */ protected function valid(array $input) { return $this->validator->with($input)->passes(); }