Skip to content
Discussion options

You must be logged in to vote

Hi @msoubofficial

You can do this via the really backwards way JS works. Docs are here; https://laravel.com/docs/10.x/precognition#configuring-axios

Effectively, in the file where you create your custom Axios instance, import the client from the laravel-precognition library and pass your instance to client.use(yourClientHere).

That will update the client used internally for laravel-precognition.

Please note; in my experience, the laravel docs are actually wrong, and you should import client from laravel-precognition not laravel-precognition-vue.

Hope that helps you and others which find this.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by crynobone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants