title: Update live data (like progress bar) in view with Laravel 4
body: <h1>TL;DR</h1>
  
  <blockquote>
    <p>I would like to send data to update live in a view, such as a progress
    bar showing the status of an action.
    What is the best way to do that in laravel 4?</p>
  </blockquote>
  
  <hr>
  
  <h1>The Setup</h1>
  
  <p>I'm working on a Laravel 4 based project where each user can redeem a serial key.</p>
  
  <p>I've made an admin backend where I can easily paste in a list of keys, or upload a file of them.</p>
  
  <p>Let's say <code>$key_string</code> is the string of newline-seperated keys that I've uploaded, and want to parse out to then upload the contained key strings from - here is the simplified code that adds the keys:</p>
  
  <pre><code>$key_string = rtrim($key_string);
  $key_string = str_replace("\n\r", "\n", $key_string);
  $keys = explode( "\n", $key_string);
  
  foreach($keys as $index =&gt; $key) {
      Key::create(
          array( "serial" =&gt; trim($key) )
      );
  }
  </code></pre>
  
  <p>Since the sets of keys I upload number in the thousands, this can sometimes take a good 30 seconds, during which time the admin panel naturally doesn't show anything.</p>
  
  <p>Now, I don't mind it taking this time. I don't need to optimize the upload to use one query, etc, but I would like to have some actual feedback so I know how far the upload has gone.</p>
  
  <hr>
  
  <h1>The Question</h1>
  
  <p>When I upload keys, I would like to be able to update a progress bar or counter in my view every few seconds or percent ticks (using the current <code>$index</code>)</p>
  
  <p>Is there an easy way to handle this painlessly, preferably integrated in Laravel 4? I'm assuming this would involve ajax, but can someone point me in the right direction?</p>