Is there a way to auto-scrub model attributes that aren't being used?

Hello, according to https://filamentphp.com/docs/2.x/admin/resources/security, filament automatically exposes all model attributes unless they are protected by the $visible or $hidden model attributes. These exposed attributes are accessible through the console under window.livewire

Is there a way to make it so that filament automatically scrubs model attributes that aren't being used in the view/edit form? I understand that, according to the documentation, this may affect the functionality of dynamic addition/removal of form fields for the model attributes that are auto-scrubbed, but I am willing to take that trade for my use-case.

Thank you.
Filament
The elegant TALL stack admin panel for Laravel artisans.
Was this page helpful?