I currently have the following code:
public static $validate = array(
'first_name'=>'required',
'last_name'=>'required',
'email'=>'required|email'
);
public static $validateCreate = array(
'first_name'=>'required',
'last_name'=>'required',
'email'=>'required|email',
'password'=>'required|min:6'
);
I would like to know if its possible to reference the first static validate array and just add the extra one validation rule without rewriting the whole rule as I am currently doing.
I know you can not reference any variables from static declarations but I would just like to know if there are any better ways of storing model validation rules in a model.