Download app/Http/Requests/Settings/ProfileUpdateRequest.php from lifedebugger/CAPS04-FE-REFACTOR-2: direct link, hf CLI and curl.
- Browser
- Download file 517 Bytes
-
https://huggingface.co/spaces/lifedebugger/CAPS04-FE-REFACTOR-2/resolve/main/app/Http/Requests/Settings/ProfileUpdateRequest.php
- Command line
-
hf download hf://spaces/lifedebugger/CAPS04-FE-REFACTOR-2/app/Http/Requests/Settings/ProfileUpdateRequest.php
-
curl -L -o ProfileUpdateRequest.php https://huggingface.co/spaces/lifedebugger/CAPS04-FE-REFACTOR-2/resolve/main/app/Http/Requests/Settings/ProfileUpdateRequest.php
517 Bytes
| namespace App\Http\Requests\Settings; | |
| use App\Concerns\ProfileValidationRules; | |
| use Illuminate\Contracts\Validation\ValidationRule; | |
| use Illuminate\Foundation\Http\FormRequest; | |
| class ProfileUpdateRequest extends FormRequest | |
| { | |
| use ProfileValidationRules; | |
| /** | |
| * Get the validation rules that apply to the request. | |
| * | |
| * @return array<string, ValidationRule|array<mixed>|string> | |
| */ | |
| public function rules(): array | |
| { | |
| return $this->profileRules($this->user()->id); | |
| } | |
| } | |