简体   繁体   中英

how to pass laravel queue with select query and render the data in view

如何在Laravel 5.4中使用队列选择查询,然后在数据准备好后呈现数据。

You need to do the following:

  1. Add the job to the queue
  2. Redirect to another page (or stay where you are if it's client-scripted)
  3. Watch if the task is done with Ajax. Just fetch for the data you need. If it's there - it's done. If not yet - try again in some period of time, like a few seconds.
  4. Once it's there, refresh your GUI with JavaScript.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM