filamentphp / filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
https://filamentphp.com
MIT License
15.94k stars 2.54k forks source link

Method Filament\Actions\ActionGroup::getName does not exist. #13230

Closed kl4ver closed 3 weeks ago

kl4ver commented 3 weeks ago

Package

filament/filament

Package Version

v3.2.83

Laravel Version

v10.48.12

Livewire Version

v3.5.0

PHP Version

PHP 8.1

Problem description

In the getHeaderActions of a HasForms component in the forms method, I try to add an ActionGroup, but then I get the error Method Filament\Actions\ActionGroup::getName does not exist.

public function getHeaderActions(): array
    {
        return [
            ActionGroup::make([
                FormAction::make('AAA'),
                FormAction::make('BBB'),
                FormAction::make('CCC'),

            ])->label('test'),
        ];
    }

How to fix this? In the tables it's working perfect.

Expected behavior

There shouldn't be any error, you should also can use this function in forms

Steps to reproduce

Add the code above to a form

Reproduction repository

https://github.com/ask

Relevant log output

No response

Donate 💰 to fund this issue

Fund with Polar

danharrin commented 3 weeks ago

No reproduction repository

kl4ver commented 3 weeks ago

No reproduction repository

I know, but I have a sample code provided, isn't this enough?

danharrin commented 3 weeks ago

Please read the issue template