|string> */ public function rules(): array { return [ 'target_commit' => ['nullable', 'string', 'size:40', 'regex:/^[a-fA-F0-9]{40}$/'], ]; } }