Closed goldjunge4 closed 10 months ago
I get always a illegal offset type from the table action
Sounds like an issue when rendering the actual changes. Can you share the Flare url of the rror so I can have a look at it?
This is an error in the Table Action array:
WRONG:
Tables\Actions\Action::make('activities')->url(fn ($record) => StopResource::getUrl('activities', [$record => $record])),
CORRECT:
Tables\Actions\Action::make('activities')->url(fn ($record) => StopResource::getUrl('activities', ['record' => $record])),
It's a typo in the docs :)
All the best, Sebastian
Thanks @skurfuerst. Took me some time to see the difference, but fixes the readme 😅 @goldjunge4 Does that fix it for you?
Closing due to inactivity
Hello Dennis,
I would like to use your filament package, but have some troubles to get it running. I get always a illegal offset type from the table action and i tried so much different things. Maybe you can give me a hint.
I created a page inside my filament resource folder called "ListStopActivities.php"
Afterwards i added the page to the getPages method:
And last i added the action to the table action array.
Maybe you have a hint? Thanks, Armin