> 검증 규칙 */ public function rules(): array { return [ 'scope' => ['nullable', Rule::in(['route', 'hook', 'custom'])], 'purpose' => ['nullable', 'string', 'max:64'], 'source_type' => ['nullable', Rule::in(['core', 'module', 'plugin', 'admin'])], 'source_identifier' => ['nullable', 'string', 'max:100'], 'applies_to' => ['nullable', Rule::in(['self', 'admin', 'both'])], 'fail_mode' => ['nullable', Rule::in(['block', 'log_only'])], 'enabled' => ['nullable', 'boolean'], 'search' => ['nullable', 'string', 'max:255'], 'per_page' => ['nullable', 'integer', 'min:1', 'max:100'], ]; } }