Sam Axe
Sam Axe
FFilament
Created by Sam Axe on 5/2/2025 in #❓┊help
Encrypted cast doesn't load into inputs when using $hidden cast.
Since this is sensitive information, I don't want to accidentally leak it somewhere in payload on the front facing application hence I put those values into $hidden. But now I have and issue with it, when using Filament as admin, I want to make exception here and still load this data. What would be proper way to handle this?
Forms\Components\TextInput::make('api_key')
->label('API Key')
->default(fn ($record) => $record?->api_key),

Forms\Components\TextInput::make('api_secret')
->label('API Secret'),
Forms\Components\TextInput::make('api_key')
->label('API Key')
->default(fn ($record) => $record?->api_key),

Forms\Components\TextInput::make('api_secret')
->label('API Secret'),
5 replies