53fb7b7760
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
31 lines
729 B
PHP
31 lines
729 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Http\Requests\Auth;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
/**
|
|
* Валидация POST /api/auth/resend-code — повторная отправка кода подтверждения.
|
|
*/
|
|
class ResendCodeRequest extends FormRequest
|
|
{
|
|
/** @return array<string, mixed> */
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'email' => ['required', 'string', 'email', 'max:255'],
|
|
];
|
|
}
|
|
|
|
/** @return array<string, string> */
|
|
public function messages(): array
|
|
{
|
|
return [
|
|
'email.required' => 'Укажите email.',
|
|
'email.email' => 'Email указан некорректно.',
|
|
];
|
|
}
|
|
}
|