Exposed routes can be configured in config/ziggy.php.
Mar 19, 2025
2
Level 8
Hiding Ziggy routes
I have a Laravel 11 web application that is using Breeze. It is now in production smoothly, but I have a concern about the "exposed" routes by Ziggy. All of the routes (including admin) are expose and anyone can see it. While I have the appropriate authentication and authorization applied, I just don't one every can see those routes especially the "admin" routes.
Has anyone here done this before?
// from the response in the browser's console
<script type="text/javascript">
const Ziggy = {
...
Please or to participate in this conversation.