© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•16mo ago•
1 reply
nowak

How to use CreateAction for a resource in an unrelated resources table headerActions?

I have recently experimented with adding a CreateAction to a resource tables headerActions, but this fails as I get the error:
Method Filament\Actions\CreateAction::table does not exist.
Method Filament\Actions\CreateAction::table does not exist.

But I was able to add my CreateAction to the ListResource pages getHeaderActions() method, like so:
protected function getHeaderActions(): array
{
  return [
    CreateAction::make('userOrder')
      ->label('Create User Order')
      ->model(UserOrder::class)
      ->form(UserOrderResource::getFormSchema()),
  ];
}
protected function getHeaderActions(): array
{
  return [
    CreateAction::make('userOrder')
      ->label('Create User Order')
      ->model(UserOrder::class)
      ->form(UserOrderResource::getFormSchema()),
  ];
}

Would it be possible to add the functionality of this action to the tables headerActions instead of List page header actions? The main reason for me wanting to move the the table header, is for the placement in the UI, to avoid having the action buttons spread out too much.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

CreateAction in RelationManager at table headerActions always use related resource form
FilamentFFilament / ❓┊help
4mo ago
How to include a different resource CreateAction in resource CreateAction?
FilamentFFilament / ❓┊help
2y ago
How to move CreateAction inside HeaderActions
FilamentFFilament / ❓┊help
16mo ago
How to add a CreateAction in the headerActions of resource A, to create a record in resource B?
FilamentFFilament / ❓┊help
16mo ago