T
T
Taras Parashchuk2020-12-04 19:06:19
Laravel
Taras Parashchuk, 2020-12-04 19:06:19

How to pass view update from Laravel controller?

Hello.
I have a large table that will take a long time to update.
I need to pass information about the current state of the task to the view.
For example, the update status as a percentage.
How it is better to make it, through a session variable, or Ajax, or your variant?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2020-12-04
@New_Horizons

update in the background, write progress to some key, to the cache.
At the front, using Ajax, we pull the state from the cache.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question