Spaces:
Running
Running
Download app/Http/Requests/User/CheckEmailRequest.php from Ailixir-AI-Team/ailixir-api: direct link, hf CLI and curl.
- Browser
- Download file 603 Bytes
-
https://huggingface.co/spaces/Ailixir-AI-Team/ailixir-api/resolve/17620ec48bf4071b3b02de4eac231d791a9eca1c/app/Http/Requests/User/CheckEmailRequest.php
- Command line
-
hf download hf://spaces/Ailixir-AI-Team/ailixir-api@17620ec48bf4071b3b02de4eac231d791a9eca1c/app/Http/Requests/User/CheckEmailRequest.php
-
curl -L -o CheckEmailRequest.php https://huggingface.co/spaces/Ailixir-AI-Team/ailixir-api/resolve/17620ec48bf4071b3b02de4eac231d791a9eca1c/app/Http/Requests/User/CheckEmailRequest.php
603 Bytes
| namespace App\Http\Requests\User; | |
| use Illuminate\Foundation\Http\FormRequest; | |
| class CheckEmailRequest extends FormRequest | |
| { | |
| /** | |
| * Determine if the user is authorized to make this request. | |
| */ | |
| public function authorize(): bool | |
| { | |
| return true; | |
| } | |
| /** | |
| * Get the validation rules that apply to the request. | |
| * | |
| * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string> | |
| */ | |
| public function rules(): array | |
| { | |
| return [ | |
| 'email' => 'required|email|exists:users,email', | |
| ]; | |
| } | |
| } | |