title: How to Deploy Laravel 5.7.13 to Shared Hosting
body: <p>I am using "Laravel 5.7.13" and it's okay on my Local Server but when I deployed it to Live Server(Shared CPanel Server), and I have added my folder name (which I named "site") to the below lines of code in the index.php page;</p>
  
  <p>From:</p>
  
  <p><code>require __DIR__.'/../vendor/autoload.php';
   ...
   $app = require_once __DIR__.'/../bootstrap/app.php';</code></p>
  
  <p>To:</p>
  
  <p><code>require __DIR__.'/../site/vendor/autoload.php';
   ...
   $app = require_once __DIR__.'/../site/bootstrap/app.php';</code></p>
  
  <p>Still, my home page couldn't even load but comes up with the following Error:</p>
  
  <p>/home/heji/site/vendor/laravel/framework/src/Illuminate/Container/Container.php
      }</p>
  
  <pre><code>public function build($concrete)
  {
  
      if ($concrete instanceof Closure) {
          return $concrete($this, $this-&gt;getLastParameterOverride());
      }
  
      $reflector = new ReflectionClass($concrete);
  
  
      if (! $reflector-&gt;isInstantiable()) {
          return $this-&gt;notInstantiable($concrete);
      }
  
      $this-&gt;buildStack[] = $concrete;
  
      $constructor = $reflector-&gt;getConstructor();
  
  
      if (is_null($constructor)) {
          array_pop($this-&gt;buildStack);
  
          return new $concrete;
      }
  </code></pre>
  
  <p>Arguments
  "Class App\Http\Controllers\pagescontroller does not exist"</p>
  
  <p>PLEASE I NEED HELP. THANK YOU (I AM ACTUALLY A BEGINNER IN PHP/LARAVEL)</p>