D
D
dhesaw2022-04-17 18:19:39
Laravel
dhesaw, 2022-04-17 18:19:39

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

1 answer(s)
A
Anton Anton, 2022-04-17
@Fragster

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 question

Ask a Question

731 491 924 answers to any question