Hii..
I have created rules in model,like
public static $rules = array(
'fname' => 'required',
'mname' => 'required',
'lname' => 'required',
'salary' => 'required|digits_between:4,8',
'address' => 'required',
'city' => 'required',
'gender' => 'required',
'designation' => 'required',
);
and used it in controller as..
$validation = Employee::$rules; Form::setValidation($validation);
Its working fine min|max..etc... but ,when i not inserts value in textbox and just pressing Tab it not giving error (ie. put field as a blank).
Is there any prob??.
I wana do validation onblur event. Thanks.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community