File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
app/Filament/Admin/Resources/Mounts Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 2424use Filament \Resources \Resource ;
2525use Filament \Schemas \Components \Group ;
2626use Filament \Schemas \Components \Section ;
27+ use Filament \Schemas \Components \StateCasts \BooleanStateCast ;
2728use Filament \Schemas \Schema ;
2829use Filament \Tables \Columns \TextColumn ;
2930use Filament \Tables \Table ;
@@ -125,6 +126,7 @@ public static function defaultForm(Schema $schema): Schema
125126 ToggleButtons::make ('read_only ' )
126127 ->label (trans ('admin/mount.read_only ' ))
127128 ->helperText (trans ('admin/mount.read_only_help ' ))
129+ ->stateCast (new BooleanStateCast (false ))
128130 ->options ([
129131 false => trans ('admin/mount.toggles.writable ' ),
130132 true => trans ('admin/mount.toggles.read_only ' ),
You can’t perform that action at this time.
0 commit comments