cretueusebiu / vform

Handle Laravel-Vue forms and validation with ease.
https://vform.vercel.app
MIT License
607 stars 120 forks source link

Allows to pass a fully qualified url #118

Closed RomainMazB closed 3 years ago

RomainMazB commented 3 years ago

Hi @cretueusebiu ! This package is really good, and I hope it won't be abandoned (issue not merged/closed since 2 years =( )!

I used it as default with your other package about Laravel-Nuxt boilerplate, the problem is I love to use tighten/ziggy to generate my Laravel's routes to use them inside my front app and in my case, the API is located under a subdomain, so I couldn't work directly with a basic uri /login and needed to pass a fully qualified url like http://api.myapp.com/login

I tried to work without the need to make a PR:

Maybe it exists a way, maybe I used it the wrong way, but it should not be that difficult to just call a fully qualified URL so I feel like this PR is needed.

cretueusebiu commented 3 years ago

Setting axios.defaults.baseURL is all you need. I use it all the time with subdomain api.

RomainMazB commented 3 years ago

Well... It sounds like I've missed something...

I've been trying almost one complete day to work around this...