For Control Panel routes, use the CpRoutes extender. CP routes use the path prefix configured in config/waterhole/cp.php and a name prefix of waterhole.cp.. In addition to the waterhole.web middleware group, they use the waterhole.cp middleware group too, which ensures they are only accessible to admin users and require password confirmation.
If you'd like to add your own middleware to be run on Waterhole requests, you call the Route facade's prependMiddlewareToGroup and pushMiddlewareToGroup methods:
useIlluminate\Support\Facades\Route;
// Run on all requestsRoute::pushMiddlewareToGroup('waterhole.web', MyMiddleware::class);
// Run on Control Panel requests onlyRoute::pushMiddlewareToGroup('waterhole.cp', MyMiddleware::class);
You're going a bit too fast! Take a break and try again in a moment.
Something went wrong! Please reload the page and try again.
Something Went Wrong
To pick up a sortable item, press space or enter. While dragging, use the arrow keys to move the item. Press space or enter again to drop the item in its new position, or press escape to cancel.