first commit

This commit is contained in:
ericli1018
2025-06-13 12:29:06 +08:00
commit e781c1e0d7
200 changed files with 31334 additions and 0 deletions

View File

@ -0,0 +1,40 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ActivitiesParticipantRequest 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 [
'id_number' => 'required|uppercase|min:10|max:10',
'name' => 'required',
'phone' => 'required|regex:/(09)[0-9]{8}/',
'email' => 'required|email',
];
}
public function messages()
{
return [
'id_number' => '身份證格式不正確',
'phone.regex' => '手機格式不正確',
];
}
}