I can't change default create action's notification title

I have a simple createAction in a form, and I want to change the notification success title, I'm following the documentation https://filamentphp.com/docs/3.x/actions/prebuilt-actions/create#customizing-the-save-notification, but this is not working on my listUsers class.

<?php

namespace App\Filament\Resources\UserResource\Pages;

use App\Filament\Resources\UserResource;
use Filament\Actions\CreateAction;
use Filament\Resources\Pages\ListRecords;

class ListUsers extends ListRecords
{
    protected static string $resource = UserResource::class;

    public function getTitle(): string
    {
        return trans('filament-user::user.resource.title.list');
    }

    protected function getActions(): array
    {
        return [
            CreateAction::make()
                ->successNotificationTitle('User Created Successfully!'),
        ];
    }
}
Was this page helpful?