-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redefinition of variable parameters #48
Comments
Which version of Winter CMS are you using ? |
1,2,4 |
Try this: public function boot(){
\Winter\User\Models\User::extend(function($model) {
$model->bindEvent('model.beforeValidate', function() use ($model) {
$model->rules['email'] = 'required|between:55,60|email|unique:users';
}, 10);
});
} (Notice the "10" which is the handler's priority) |
Not working. The Winter.User default value is used |
Something strange is happening. When I pass parameters
the Winter.User default value is used |
I believe this would be because the |
Hello! In my plugin I'm using this code, to redefinition of variable parameters. On OctoberCMS it's working
On Winter.User when I replace
\RainLab\User\Models\User
to\Winter\User\Models\User
it doesn`t work. Why?The text was updated successfully, but these errors were encountered: