title: /vendor/autoload.php error while running laravel
body: <p>so im new to laravel, just downloaded composer, created new project through terminal in vscode, tried to run it and this error shows up</p>
  <p><a href="https://i.stack.imgur.com/JqmXP.png" rel="nofollow noreferrer">Error in localhost&gt;public</a></p>
  <p>The Code:</p>
  <pre><code>require_once __DIR__ . '/vendor/autoload.php'; 
  </code></pre>
  <p>and also getting errors while compiling on these:</p>
  <pre><code>$response = $kernel-&gt;handle(
  $request = Request::capture()   //Undefined type 'Illuminate\Http\Request'//
  )-&gt;send();
  </code></pre>
  <p>the illuminate code:</p>
  <pre><code>use Illuminate\Http\Request;
  </code></pre>
  <p>Help would be appreciated</p>