*/ public function rules(): array { return [ 'name' => ['required', 'string', 'max:255'], 'slug' => ['required', 'string', 'max:255', 'unique:organisations,slug', 'regex:/^[a-z0-9-]+$/'], 'billing_status' => ['sometimes', 'string', 'in:trial,active,suspended,cancelled'], 'settings' => ['sometimes', 'array'], 'email_logo_url' => ['nullable', 'url', 'max:500'], 'email_primary_color' => ['nullable', 'string', 'regex:/^#[0-9A-Fa-f]{6}$/'], 'email_reply_to' => ['nullable', 'email'], 'email_sender_name' => ['nullable', 'string', 'max:100'], 'email_footer_text' => ['nullable', 'string', 'max:2000'], ]; } }