title: PHP Fatal error: Class 'Dotenv' not found in
body: <p>I've a project I try to run it but I am getting a following error:</p>
  
  <pre><code>PHP Fatal error:  Class 'Dotenv' not found in `/home/maras/Documents/eCodile/debtorcare/server/bootstrap/app.php on line 5`
  </code></pre>
  
  <p>I'm struggling with this error during trying to execute a <code>php artisan start</code> I tried to reinstall all dependencies but it didn't work. 
  I've just tried to run some commands based on other similar problems I found in the Internet but any of them worked. I tried ie:</p>
  
  <p><code>composer require vlucas/phpdotenv --prefer-dist</code></p>
  
  <p>Ive got a file <code>.env</code>.</p>
  
  <p>This is a file where error is placed:</p>
  
  <pre><code>&lt;?php
  
  require_once __DIR__.'/../vendor/autoload.php';
  
  Dotenv::makeMutable();
  Dotenv::load(__DIR__.'/../');
  Dotenv::makeImmutable();
  
  /*
  |--------------------------------------------------------------------------
  | Create The Application
  |--------------------------------------------------------------------------
  |
  | Here we will load the environment and create the application instance
  | that serves as the central piece of this framework. We'll use this
  | application as an "IoC" container and router for this framework.
  |
  */
  
  $app = new Laravel\Lumen\Application(
      realpath(__DIR__.'/../')
  );
  </code></pre>
  
  <p>Is it possible the error is connected with wrong configuration of a database or phpMyAdmin? Or maybe Ive got .env placed in wrong place?</p>
  
  <p>I try to run this project in development.</p>