Spaces:
Sleeping
Sleeping
Download app/Http/Requests/Settings/PasswordUpdateRequest.php from wepee/CAPS04-FE-REFACTOR: direct link, hf CLI and curl.
- Browser
- Download file 608 Bytes
-
https://huggingface.co/spaces/wepee/CAPS04-FE-REFACTOR/resolve/refs%2Fpr%2F1/app/Http/Requests/Settings/PasswordUpdateRequest.php
- Command line
-
hf download hf://spaces/wepee/CAPS04-FE-REFACTOR@refs/pr/1/app/Http/Requests/Settings/PasswordUpdateRequest.php
-
curl -L -o PasswordUpdateRequest.php https://huggingface.co/spaces/wepee/CAPS04-FE-REFACTOR/resolve/refs%2Fpr%2F1/app/Http/Requests/Settings/PasswordUpdateRequest.php
608 Bytes
| namespace App\Http\Requests\Settings; | |
| use App\Concerns\PasswordValidationRules; | |
| use Illuminate\Contracts\Validation\ValidationRule; | |
| use Illuminate\Foundation\Http\FormRequest; | |
| class PasswordUpdateRequest extends FormRequest | |
| { | |
| use PasswordValidationRules; | |
| /** | |
| * Get the validation rules that apply to the request. | |
| * | |
| * @return array<string, ValidationRule|array<mixed>|string> | |
| */ | |
| public function rules(): array | |
| { | |
| return [ | |
| 'current_password' => $this->currentPasswordRules(), | |
| 'password' => $this->passwordRules(), | |
| ]; | |
| } | |
| } | |