nova-issues
nova-issues copied to clipboard
Unable to hide fields in `Lens` page
- Laravel Version: v8.70.2
- Nova Version: v3.30.0
- PHP Version: 8.0.12
- Database Driver & Version: mysql - 8.0.27
- Operating System and Version: macOS Monterey - 12.0.1
- Browser type and version: Firefox - 94.0.1
Description:
Unable to hide any field using either hide() for Laravel\Nova\Fields\ID field or hideFromIndex() for Laravel\Nova\Fields\Text field in lens page.
Detailed steps to reproduce the issue on a fresh Nova installation:
- Create lens page for resource
- Hide
Laravel\Nova\Fields\IDfield usinghide()orLaravel\Nova\Fields\Textfield usinghideFromIndex() - Field will still be showing in the
lenspage
Images:
There no form or detail page for Lens, it wouldn't be useful to have hideFromIndex() or readonly() for Lens context.
@crynobone so is just better for me just don't register the field if I don't want to display in in the listing table?
yes