Call to undefined method Modules\MyModule\Filament\Resources\QuestionChartResource::getUrl()
Hello everyone,
inside a RelationManager, in my table, I inserted the following custom action:
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\Action::make('regenImg2')
->label('regenerate2')
->icon('heroicon-o-arrow-path')
->url(fn ($record): string => QuestionChartResource::getUrl('regen-img-2', ['record' => $record, ...self::$route_params])),
])
as per this paragraph,
https://filamentphp.com/docs/3.x/panels/resources/getting-started#generating-urls-to-resource-pages
but it gives me the error
"Call to undefined method Modules\MyModule\Filament\Resources\QuestionChartResource::getUrl()"
suggestions on what I'm doing wrong?
Thanks in advance
inside a RelationManager, in my table, I inserted the following custom action:
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\Action::make('regenImg2')
->label('regenerate2')
->icon('heroicon-o-arrow-path')
->url(fn ($record): string => QuestionChartResource::getUrl('regen-img-2', ['record' => $record, ...self::$route_params])),
])
as per this paragraph,
https://filamentphp.com/docs/3.x/panels/resources/getting-started#generating-urls-to-resource-pages
but it gives me the error
"Call to undefined method Modules\MyModule\Filament\Resources\QuestionChartResource::getUrl()"
suggestions on what I'm doing wrong?
Thanks in advance