Custom Toggle
Is it possible to obtain the current record and the state of the toggle, true or false, in order to perform operations when saving or updating the form, so that based on that record and toggle state, custom operations can be performed, such as creating or editing other different models and the database?
Forms\Components\Toggle::make('custom'),Solution
you can work with toggle, but I think you should use some methods to customize data before filling the form and before saving it to the database
Check this section for EditPage: https://filamentphp.com/docs/3.x/panels/resources/editing-records#customizing-data-before-filling-the-form
Check this section for EditPage: https://filamentphp.com/docs/3.x/panels/resources/editing-records#customizing-data-before-filling-the-form