title: How to display results step by step in Laravel 8
body: <p>I read a Students table in a controller and then return to a view ['students' =&gt; $students].
  In the view I display information (after a treatment) for each student.
  In fact the page display when the loop is finished but I would like to display the results one after the other in my loop to show the progress and not all at once !
  I tried ajax but the process is slower because the class controller is initialized on each call.</p>
  <pre><code>&lt;?php
  $Ctrl = new App\Http\Controllers\StudentsController();
  $Ctrl-&gt;InitInfos();  // read tables and parameters and takes 1 second
  ?&gt;
  
  @foreach ($students as $student)
      &lt;?php
      $informations = $Ctrl-&gt;getInfo($student);  // this takes few seconds
      echo $informations . '&lt;br&gt;';
      ?&gt;
  @endforeach
  </code></pre>