protected function getSteps(): array
{
return [
Step::make('Job settings')
->schema([
Select::make('job_type')
->searchable()
->live()
->options([
'foo' => 'foo',
'bar' => 'bar',
])
]),
Step::make('Importing file')
->schema([
ImportAction::make()->importer(
// Based on job_type switch out the importer
// Could be done with match() {} if I was able to pass a callback function and get the Get $get('job_type')
)
]),
];
}
protected function getSteps(): array
{
return [
Step::make('Job settings')
->schema([
Select::make('job_type')
->searchable()
->live()
->options([
'foo' => 'foo',
'bar' => 'bar',
])
]),
Step::make('Importing file')
->schema([
ImportAction::make()->importer(
// Based on job_type switch out the importer
// Could be done with match() {} if I was able to pass a callback function and get the Get $get('job_type')
)
]),
];
}