Open
Description
Description
I believe Tempest needs a Hidden
attribute for model properties.
Here's what I believe it should do:
- When a property is marked as
Hidden
, it should never be returned by default when querying the models - There should be a way to include hidden fields in a query, though (maybe
->include('password', 'some_other_hidden_field')
? or maybe just by also specifying it in the->select()
call?) - You should still be able to
UPDATE
hidden fields
Alternatively, it could be named SensitiveField
or SensitiveProperty
to align with PHP's native SensitiveParameter
. Although I don't think they're technically the same thing.
Benefits
It'd be a better way to "protect" certain fields from being leaked by accident via queries.
Metadata
Metadata
Assignees
Labels
No labels