protected function getTableHeaderActions(): array
{
return [
Action::make('create')
->button()
->label(__('Create'))
->icon('heroicon-s-plus')
->visible(auth()->user()->can('core_create_field_type'))
->form($this->getFormSchema())
->action(function (array $data) {
ray($data);
}),
];
protected function getTableHeaderActions(): array
{
return [
Action::make('create')
->button()
->label(__('Create'))
->icon('heroicon-s-plus')
->visible(auth()->user()->can('core_create_field_type'))
->form($this->getFormSchema())
->action(function (array $data) {
ray($data);
}),
];