35 lines
744 B
PHP
35 lines
744 B
PHP
<?php
|
|
|
|
namespace Modules\MembershipApplication\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class LookupMemberRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'ic_number' => 'required|string|max:20',
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @return array<string, string>
|
|
*/
|
|
public function messages(): array
|
|
{
|
|
return [
|
|
'ic_number.required' => 'Nombor kad pengenalan diperlukan.',
|
|
'ic_number.max' => 'Nombor kad pengenalan tidak sah.',
|
|
];
|
|
}
|
|
}
|