Ziggy just uses the url on the page for me. So can you show how you are using it ? I personally have installed this for the javascript instead of the one from /vendor https://www.npmjs.com/package/ziggy-js
Can't render correct routes with vite, laravel, ziggy and vue
Currently I have a new laravel app with vite, vue and ziggy, and the site loads correctly, but when I check the generated links, they don't include the port, so when I click on the links the site doesn't work.
I tried two ways of testing the site, one way was spinning up the local server with php artisan serve and npm run dev and I can enter the site with the port and enter the links manually but the links don't work because they are rendered like 127.0.0.1/register, but it works if I manually enter 127.0.0.1:8000/register and I can see the register form.
It also works if I put the route of the url manually without ziggy because the route end up being 127.0.0.1:8000/register, but where's the fun in that?
I also tried only running npm run dev and when I enter to localhost but it doesn't show anything, but it could be because I could be running xampp in the background. so I also tried shutting down the apache server and it also doesn't show anything.
any ideas of what I could be doing wrong?
Please or to participate in this conversation.