route('id'); return [ 'name' => ['sometimes', 'required', 'string', 'max:100'], 'code' => ['sometimes', 'required', 'string', 'max:50', Rule::unique('plans', 'code')->ignore($planId)], 'description' => ['nullable', 'string', 'max:500'], 'price' => ['sometimes', 'required', 'numeric', 'min:0'], 'billing_cycle' => ['sometimes', 'required', 'string', Rule::in(Plan::BILLING_CYCLES)], 'features' => ['nullable', 'array'], 'features.*' => ['string', 'max:200'], 'is_active' => ['nullable', 'boolean'], ]; } }