Download app/Http/Requests/ProfileUpdateRequest.php from pnacorp/magicai: direct link, hf CLI and curl.
- Browser
- Download file 569 Bytes
-
https://huggingface.co/pnacorp/magicai/resolve/main/app/Http/Requests/ProfileUpdateRequest.php
- Command line
-
hf download hf://pnacorp/magicai/app/Http/Requests/ProfileUpdateRequest.php
-
curl -L -o ProfileUpdateRequest.php https://huggingface.co/pnacorp/magicai/resolve/main/app/Http/Requests/ProfileUpdateRequest.php
569 Bytes
| namespace App\Http\Requests; | |
| use App\Models\User; | |
| use Illuminate\Foundation\Http\FormRequest; | |
| use Illuminate\Validation\Rule; | |
| class ProfileUpdateRequest extends FormRequest | |
| { | |
| /** | |
| * Get the validation rules that apply to the request. | |
| * | |
| * @return array<string, \Illuminate\Contracts\Validation\Rule|array|string> | |
| */ | |
| public function rules(): array | |
| { | |
| return [ | |
| 'name' => ['string', 'max:255'], | |
| 'email' => ['email', 'max:255', Rule::unique(User::class)->ignore($this->user()->id)], | |
| ]; | |
| } | |
| } | |