public static function configure(Schema $schema): Schema
{
return $schema
->schema([
...self::getComponents($schema),
Section::make('Paired connector')
->columnSpanFull()
->collapsible()
->collapsed()
->relationship('pairedConnector', fn(?array $state) => filled($state['name']))
->schema([
...self::getComponents($schema, false),
])
->headerActions([
Action::make('copyFormContent')
->label('Copy Form Content')
->icon('heroicon-m-sparkles')
->action(function (Set $set, Get $get) {
// Send a notification to prove it's firing
Notification::make()
->title('Action is working!')
->success()
->send();
}),
]),
]);
}
public static function configure(Schema $schema): Schema
{
return $schema
->schema([
...self::getComponents($schema),
Section::make('Paired connector')
->columnSpanFull()
->collapsible()
->collapsed()
->relationship('pairedConnector', fn(?array $state) => filled($state['name']))
->schema([
...self::getComponents($schema, false),
])
->headerActions([
Action::make('copyFormContent')
->label('Copy Form Content')
->icon('heroicon-m-sparkles')
->action(function (Set $set, Get $get) {
// Send a notification to prove it's firing
Notification::make()
->title('Action is working!')
->success()
->send();
}),
]),
]);
}