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.

Home Page:https://filamentphp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

kl4ver opened this issue · comments

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

No reproduction repository

No reproduction repository

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

Please read the issue template