We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 019277c commit 0b1610fCopy full SHA for 0b1610f
src/Illuminate/Validation/Rules/Password.php
@@ -132,7 +132,9 @@ public static function defaults($callback = null)
132
*/
133
public static function default()
134
{
135
- $password = value(static::$defaultCallback);
+ $password = is_callable(static::$defaultCallback)
136
+ ? call_user_func(static::$defaultCallback)
137
+ : static::$defaultCallback;
138
139
return $password instanceof Rule ? $password : static::min(8);
140
}
0 commit comments