ListCurrencies.php
protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make()
->createAnother(false)
->using(function (array $data, string $model): Model {
return $model::createWithAttributes($data);
})
->icon('heroicon-o-plus')
->label('Create')
->modalWidth(MaxWidth::Large),
];
}
ListCurrencies.php
protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make()
->createAnother(false)
->using(function (array $data, string $model): Model {
return $model::createWithAttributes($data);
})
->icon('heroicon-o-plus')
->label('Create')
->modalWidth(MaxWidth::Large),
];
}