25 lines
475 B
PHP
25 lines
475 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Modules\Identity\Http\Requests;
|
||
|
|
|
||
|
|
use Illuminate\Foundation\Http\FormRequest;
|
||
|
|
|
||
|
|
class VerifyRegistrationCodeRequest extends FormRequest
|
||
|
|
{
|
||
|
|
public function authorize(): bool
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @return array<string, array<int, string>>
|
||
|
|
*/
|
||
|
|
public function rules(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'identifier' => ['required', 'string'],
|
||
|
|
'code' => ['required', 'string', 'size:6'],
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|