Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kl4ver opened this issue Jun 13, 2024 · 3 comments
Closed

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

kl4ver opened this issue Jun 13, 2024 · 3 comments
Labels

Comments

@kl4ver
Copy link

kl4ver commented Jun 13, 2024

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

  • You can donate funding to this issue. We receive the money once the issue is completed & confirmed by you.
  • 100% of the funding will be distributed between the Filament core team to run all aspects of the project.
  • Thank you in advance for helping us make maintenance sustainable!
Fund with Polar
@kl4ver kl4ver added bug Something isn't working medium priority unconfirmed labels Jun 13, 2024
@danharrin
Copy link
Member

No reproduction repository

@danharrin danharrin closed this as not planned Won't fix, can't repro, duplicate, stale Jun 13, 2024
@kl4ver
Copy link
Author

kl4ver commented Jun 13, 2024

No reproduction repository

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

@danharrin
Copy link
Member

Please read the issue template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

2 participants