title: How can I use Illuminate\Session\Middleware\StartSession::class on lumen 5.2
body: <p>I got this <strong>Error:</strong></p>
  
  <pre><code>BindingResolutionException in Container.php line 839:
  Unresolvable dependency resolving 
  [Parameter #0 [ &lt;required&gt; $app ]] in class Illuminate\Support\Manager
  </code></pre>
  
  <p><strong>bootstrap/app.php :</strong></p>
  
  <pre><code>$app-&gt;middleware([
   Illuminate\Session\Middleware\StartSession::class,
  ]);
  </code></pre>