Tabs\Tab::make('Tab 1')
Actions::make([
// This action works fine
Actions\Action::make('View Some Stuff')
->url(function ($record): string {
return 'https://yahoo.com';
})
->openUrlInNewTab(),
// This throws an exception because ImportAction isn't an acceptable type
ImportAction::make('importStuff')
->label('Import Stuff')
->importer(StuffImporter::class)
->options(['thing_id' => 1]),
Tabs\Tab::make('Tab 1')
Actions::make([
// This action works fine
Actions\Action::make('View Some Stuff')
->url(function ($record): string {
return 'https://yahoo.com';
})
->openUrlInNewTab(),
// This throws an exception because ImportAction isn't an acceptable type
ImportAction::make('importStuff')
->label('Import Stuff')
->importer(StuffImporter::class)
->options(['thing_id' => 1]),