It looks like you're trying to organize your Nova Tool pages using Inertia.js and Vue components, but you're running into an issue with the path structure. The problem seems to be related to how Nova registers and resolves the Inertia components.
Nova's Nova.inertia method registers the component with a specific name, and it appears that using a path-like structure (e.g., Test/Index) might be causing issues. However, you can still achieve a similar organizational structure by using a different naming convention that avoids the slash (/) character.
Here's a solution that maintains a clear organizational structure without using slashes:
-
Controller: Update your controller to use a dot (
.) instead of a slash (/) in the component name.class TestController extends Controller { public function index() { return Inertia::render('Test.Index'); } } -
JavaScript: Update your
test-tool.jsto match the new naming convention.import Index from './pages/Index.vue' Nova.booting((app, store) => { Nova.inertia('Test.Index', Index); })
By using a dot (.) instead of a slash (/), you can avoid the 404 not found error while still maintaining a clear and organized structure for your components.
This approach should resolve the issue and allow you to organize your Nova Tool pages effectively.