23 lines
483 B
PHP
23 lines
483 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Auth;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
use Illuminate\Validation\Rule;
|
|
|
|
class ResendVerificationCodeRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'verification_channel' => ['required', Rule::in(['email', 'whatsapp'])],
|
|
'verification_target' => ['required', 'string', 'max:100'],
|
|
];
|
|
}
|
|
}
|