title: Error - required bootstrap/../vendor/autoload.php) index.php line 22 in Laravel 5
body: <p>I'm working on Laravel 5.2 framework and run first time project </p>
  
  <p>When i run root link display error:  </p>
  
  <pre><code>Warning: require(/home/ubuntu/workspace/../bootstrap/autoload.php): failed to open stream: No such file or directory in /home/ubuntu/workspace/index.php on line 22 Call Stack: 0.0028 236248 1. {main}() /home/ubuntu/workspace/index.php:0 Fatal error: require(): Failed opening required '/home/ubuntu/workspace/../bootstrap/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/ubuntu/workspace/index.php on line 22 Call Stack: 0.0028 236248 1. {main}() /home/ubuntu/workspace/index.php:0
  </code></pre>
  
  <p>Before i call composer install </p>
  
  <p>Its my <strong>application/.htpaccess:</strong></p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      &lt;IfModule mod_negotiation.c&gt;
          Options -MultiViews
      &lt;/IfModule&gt;
  
      RewriteEngine On
      RewriteRule ^(.*)$ public/$1 [L]
      # Redirect Trailing Slashes If Not A Folder...
      RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule ^(.*)/$ /$1 [L,R=301]
  
       # Handle Front Controller...
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteRule ^ index.php [L]
  
      # Handle Authorization Header
       RewriteCond %{HTTP:Authorization} .
       RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  
       RewriteRule ^(.*)$ public/$1 [L]
  
  &lt;/IfModule&gt;
  </code></pre>
  
  <p><strong>routes.php</strong></p>
  
  <pre><code>Route::get('/', function () {
      return view('welcome');
  });
  </code></pre>
  
  <p><strong>application/index.php</strong></p>
  
  <pre><code>require __DIR__.'/../bootstrap/autoload.php';
  
  $app = require_once __DIR__.'/../bootstrap/app.php';
  
  $kernel = $app-&gt;make(Illuminate\Contracts\Http\Kernel::class);
  
  $response = $kernel-&gt;handle(
      $request = Illuminate\Http\Request::capture()
  );
  
  $response-&gt;send();
  
  $kernel-&gt;terminate($request, $response);
  </code></pre>
  
  <p><strong>EDIT:</strong> </p>
  
  <p>I replaced in index.php to </p>
  
  <pre><code>require __DIR__.'/../vendor/autoload.php';
  </code></pre>
  
  <p>But display error: </p>
  
  <pre><code>Warning: require(/home/ubuntu/workspace/../vendor/autoload.php): failed to open stream: No such file or directory in /home/ubuntu/workspace/index.php on line 22 Call Stack: 0.0004 233376 1. {main}() /home/ubuntu/workspace/index.php:0 Fatal error: require(): Failed opening required '/home/ubuntu/workspace/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/ubuntu/workspace/index.php on line 22 Call Stack: 0.0004 233376 1. {main}() /home/ubuntu/workspace/index.php:0
  </code></pre>
  
  <p>I have folder vendor in root directory. How me solve this issue? Thank you. </p>