Answer the question
In order to leave comments, you need to log in
How to declare global variables from vue larvel db?
Hello!
Sorry, but I don't know exactly what these global variables from the database are called.
Let's say the database stores the company's contact phone number, which sometimes needs to be inserted somewhere on the site. Maybe there is a way to access the database only once to get data and display its data through a certain variable
Answer the question
In order to leave comments, you need to log in
https://vuex.vuejs.org/ or a newer (and much less verbose) alternative https://pinia.vuejs.org/introduction.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question