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
Installation - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
3 Replies
Dan Harrin
Dan Harrin2y ago
i wouldnt worry about it anyway, unless the data is sensitive. its still not editable
Vinny
VinnyOP2y ago
The data is sensitive, unfortunately. I can unset them manually, obviously, according to what the documentation says but there are a lot of fields so I was moreso looking for an automatic way of doing so.
Want results from more Discord servers?
Add your server