Skip to content

Instantly share code, notes, and snippets.

@webnitros
Created September 20, 2023 04:30
Show Gist options
  • Save webnitros/69d9fd36c9f9dfd3473c34451eec011f to your computer and use it in GitHub Desktop.
Save webnitros/69d9fd36c9f9dfd3473c34451eec011f to your computer and use it in GitHub Desktop.
filament
TextInput::make('name')
->disabled() // Поле отключен
->dehydrated() // запрет на редактирование но при этом сохранять данные в базу
->dehydrateStateUsing(fn(string $state): string => mb_strtolower($state))
->required(),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment