I installed the package tightenco/ziggy, set it up as in the documentation, everything works. But the template displays the entire list of addresses as in the screenshot Please tell me where I went wrong
<head>
@routes
@vite('resources/js/app.js')
@inertiaHead
</head>
<body>
@inertia
</body>
<Link :href="route('listing.show', listing.id)">
<listingAddress :listing="listing" />
</Link>
app.js
import { ZiggyVue } from 'ziggy'
import { Ziggy } from './ziggy';
vite.config
.use(ZiggyVue, Ziggy)
resolve: {
alias: {
ziggy: path.resolve('/vendor/tightenco/ziggy/dist/vue.es.js')
},
},
As stated on the documentation you can exclude certain routes or include the route you want to expose to the client .