Support the ongoing development of Laravel.io →
posted 9 years ago
Packages
Last updated 1 year ago.
0

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.

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

bllim bllim Joined 4 Nov 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.