[Vuejs]-Displaying ziggy packeg wrong

1👍

As stated on the documentation you can exclude certain routes or include the route you want to expose to the client .

Ziggy supports filtering the routes it makes available to your JavaScript, which is great if you have certain routes that you don’t want to be included and visible in the source of the response sent back to clients. Filtering routes is optional—by default, Ziggy includes all your application’s named routes.

To set up basic route filtering, create a config file in your Laravel
app at config/ziggy.php and define either an only or except setting as
an array of route name patterns.

// config/ziggy.php

return [
    'except' => ['_debugbar.*', '_ignition.*',],
];
👤SeyT

Leave a comment