I am writing a custom validation rule on Laravel 4. However, I am looking forward to use the existing validation rules ( example : exists, email, min etc. ) inside it. I am not sure how to do this, and I am guessing using Validator::make is not really the right way. My code is below:
Validator::extend('check_fulfilled',function($attribute,$value,$parameters){
$movieidfield = Input::get('movieid');
if( empty($movieidfield ) ) return false;
// Here I would like to test $movieidfield
//with exists and min validation rules
});
It would be really great if someone can help me with this. Thank you!
$v = Validator::make()
, etc. – alexrussell