This page shows how to add a custom page with a component only to logged-in users.
You need to define and register a component and add a menu-item to Voyager if you want.
useIlluminate\Support\Facades\Route;useInertia\Inertia;useVoyager\Admin\Contracts\Plugins\Features\Provider\ProtectedRoutes;classMyPluginimplementsProtectedRoutes{publicfunctionprovideProtectedRoutes():void {Route::get('my-page',function (Request $request) {// Trigger Voyager to inject some necessary dynamic dataInertia::setRootView('voyager::app');returnInertia::render('my-component', ['data'=> [] ])->withViewData('title','My page'); }); }}