ViewAction doesn't work

Why are you using a ViewAction? This is a preconfigured actions to load the the current model into a modal or open in a new page.

Use a normal action:

Action::make()->action(fn () => null)->modalContent(fn ($record) => view())
Was this page helpful?