Spaces:
Sleeping
Sleeping
Download app/Concerns/PasswordValidationRules.php from wepee/CAPS04-FE-REFACTOR: direct link, hf CLI and curl.
- Browser
- Download file 718 Bytes
-
https://huggingface.co/spaces/wepee/CAPS04-FE-REFACTOR/resolve/main/app/Concerns/PasswordValidationRules.php
- Command line
-
hf download hf://spaces/wepee/CAPS04-FE-REFACTOR/app/Concerns/PasswordValidationRules.php
-
curl -L -o PasswordValidationRules.php https://huggingface.co/spaces/wepee/CAPS04-FE-REFACTOR/resolve/main/app/Concerns/PasswordValidationRules.php
718 Bytes
| namespace App\Concerns; | |
| use Illuminate\Contracts\Validation\ValidationRule; | |
| use Illuminate\Validation\Rules\Password; | |
| trait PasswordValidationRules | |
| { | |
| /** | |
| * Get the validation rules used to validate passwords. | |
| * | |
| * @return array<int, ValidationRule|array<mixed>|string> | |
| */ | |
| protected function passwordRules(): array | |
| { | |
| return ['required', 'string', Password::default(), 'confirmed']; | |
| } | |
| /** | |
| * Get the validation rules used to validate the current password. | |
| * | |
| * @return array<int, ValidationRule|array<mixed>|string> | |
| */ | |
| protected function currentPasswordRules(): array | |
| { | |
| return ['required', 'string', 'current_password']; | |
| } | |
| } | |