I've been using this in order to edit the User Account Info:
$this->validate($request, [
'password' => 'min:6',
'password_confirmation' => 'required_with:password|same:password|min:6'
]);
This worked fine in a Laravel 5.2 Application but does not work in a 5.4 Application.
这里有什么问题,或者如果设置了password
或password_confirmation
字段,那么只需要设置password
的正确方法是什么?