Learn, Share, Build

193
October 12, 2017, at 5:06 PM

I need to run a specific script/application once a certain button was pressed in my view. Now that this process may take up some time (30 seconds and more) I'd like to inform the user of the progress and whether it is successful or not.

What I have in mind is a simple text/label and a progress bar which are 'somehow' fed with the progression data provided by my Laravel application (the controller, to be more precise).

However, I have no clue where to start or what is best practise for a case as such.

Answer 1

I suggest you take a look at the queue in laravel: https://laravel.com/docs/5.5/queues

For the progress part. On different parts in a job you could dispatch an event. If you want to display them in your frontend, you should use something with push notifications. Laravel also has something for that:https://laravel.com/docs/5.5/broadcasting

READ ALSO
Learn, Share, Build

Learn, Share, Build

I'm trying to install an extension (specifically xdebug) for a custom compiled php versionIs it possible to do so if the said so php interpreter doesn't have php-config phpize or pecl (--without-pear) installed?

250
Learn, Share, Build

Learn, Share, Build

OK I have this

158
Learn, Share, Build

Learn, Share, Build

I can not understand how to get this kind of result via array_push()

205
Learn, Share, Build

Learn, Share, Build

I have some registration which sends tag as a value to the server

190