*/ public function after(): array { return [function (Validator $validator): void { if ($this->isSecure() && $this->input('scheme') === 'http') { $validator->errors()->add( 'scheme', 'HTTP node connections cannot be used when the Panel is loaded over HTTPS.' ); } }]; } /** Rename fields to be more clear in error messages. */ public function attributes(): array { return [ 'daemon_base' => 'Daemon Base Path', 'upload_size' => 'File Upload Size Limit', 'location_id' => 'Location', 'public' => 'Node Visibility', ]; } /** * {@inheritdoc} */ protected function extensionFieldsModel(): Model|string { return Node::class; } }