FooterActions method not present in Filament\Forms\Components\Section;

For some reason, I have no footerActions method inside this class. According to the docs, this should be correct:
use Filament\Forms\Components\Section;

Section::make('Moderate Request')
->footerActions([
Action::make('test')
->action(function () {
// ...
}),
])
use Filament\Forms\Components\Section;

Section::make('Moderate Request')
->footerActions([
Action::make('test')
->action(function () {
// ...
}),
])
Which already gives me the following error: Method Filament\Forms\Components\Section::footerActions does not exist. The docs clearly state to add this use use Filament\Forms\Components\Section; https://filamentphp.com/docs/3.x/forms/layout/section#adding-actions-to-the-sections-footer I checked the Section class but there is no function regarding footerActions there. Are the docs outdated in this regard, or what's happening here? 🤔
11 Replies
Pedroesca
Pedroesca5mo ago
Have you been able to solve this? I have the same problem
awcodes
awcodes5mo ago
Check your actual installed version of filament. Run php artisan about
Pedroesca
Pedroesca4mo ago
v3.2.0 ------ And no matter how much I try to update, it always leaves me in that version
awcodes
awcodes4mo ago
You might have other dependencies that won’t allow you to update but latest version is 3.2.112, so unless you can update the footer actions aren’t available. Can you share your composer.json “require” object?
Matthew
Matthew4mo ago
Try including the dependencies: composer update filament/filament --with-all-dependencies
Pedroesca
Pedroesca4mo ago
No description
awcodes
awcodes4mo ago
There it is, you have filament locked to 3.2, change that to ‘^3.2’
Pedroesca
Pedroesca4mo ago
Now it updated correctly, but it started to show me the error "Undefined type 'Filament\Tables\Columns\TextColumn'.intelephense(P1009)" in ->columns([ TextColumn::make('status')) of my resources
awcodes
awcodes4mo ago
You vs code might need to reindex
Pedroesca
Pedroesca4mo ago
You're right, it was a huge mistake on my part not to have done it.
Ramon.vV
Ramon.vVOP4mo ago
I don't recall what exactly was the problem here, vaguely I remember also having to upgrade my Filament version, so I'll mark that as the answer!

Did you find this page helpful?