Disable dependend fields

Hi, i have two text fields:

Forms\Components\TextInput::make('field1')->reactive(),
                Forms\Components\TextInput::make('field2')->disabled(fn(callable $get) => $get('field1') === '')


I'm trying to disable the field2 when field1 is empty.
How can I access with $get() to the field1 value?
Was this page helpful?