public function form(Form $form): Form
{
return $form->schema([
Section::make('personal')
->schema([
TextInput::make('name')
->rules(['max:20', 'required']),
Actions::make([
Action::make('personal_action')
->action(function (Set $set) {
$this->form->getState();
doSomethingMagical();
}),
]),
]),
Section::make('business')
->schema([
TextInput::make('company_name')
->rules(['max:20', 'required']),
Actions::make([
Action::make('business_action')
->action(function (Set $set) {
$this->form->getState();
doSomethingMagical();
}),
]),
]),
]);
}
public function form(Form $form): Form
{
return $form->schema([
Section::make('personal')
->schema([
TextInput::make('name')
->rules(['max:20', 'required']),
Actions::make([
Action::make('personal_action')
->action(function (Set $set) {
$this->form->getState();
doSomethingMagical();
}),
]),
]),
Section::make('business')
->schema([
TextInput::make('company_name')
->rules(['max:20', 'required']),
Actions::make([
Action::make('business_action')
->action(function (Set $set) {
$this->form->getState();
doSomethingMagical();
}),
]),
]),
]);
}