W razie potrzeby walidacja Laravel 8, jeśli inne pole nie jest zerowe
$request->validate([
"old_password" =>"nullable",
"new_password" =>"confirmed|nullable|different:old_password|required_with:old_password",
"password_confirmation" =>"nullable|required_with:new_password|required_with:old_password"
]);
hirohito