Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

User1980's avatar

How to do a simple axios request with Breeze or Jetstream? Inertia bug?

Hi all,

I find zero help on this and I am stuck with the issue for 1 week. Hope to find someone with an answer :-(

It is impossible for me to do any normal Axio calls from vue when Inertia is installed.

ie: In vue you try to call the back end to communicate with an API.

With Laravel you would usually return this: return response()->json($data);

In the front end in vue you would get the response from the axios.get request and that's it.

But when Inertia is installed, none of this work....any idea why?

Could someone please try? ie: install Jetstream or Breeze and try an axios get with a json object as a return. I see many people with the same issue, I don't get it.

Thanks!

0 likes
2 replies
fylzero's avatar
fylzero
Best Answer
Level 67

@user1980 Installed a fresh copy of Laravel, installed Breeze w/ Inertia... created an endpoint that returns a json response... created an axios call... annnnnd... it works just fine.

User1980's avatar

Thanks, I am still working on it but at least I know it is nothing with the library itself, many thanks for doing this.

1 like

Please or to participate in this conversation.