-
-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
Description
Hello! In my plugin I'm using this code, to redefinition of variable parameters. On OctoberCMS it's working
public function boot(){
\RainLab\User\Models\User::extend(function($model) {
$model->bindEvent('model.beforeValidate', function() use ($model) {
$model->rules['email'] = 'required|between:55,60|email|unique:users';
});
});
}
On Winter.User when I replace \RainLab\User\Models\User to \Winter\User\Models\User it doesn`t work. Why?