title: Laravel 5.5 - Class Custom BaseController not found but exists
body: <p>Laravel 5.5 Custom <code>BaseController</code> not found even though it exists. Have checked the other questions on <code>StackOverflow</code> regarding the <code>BaseController</code> not found but they are referring to the default <code>BaseController</code> which isn't the same in mine case.</p>
  
  <p>Here is my implementation</p>
  
  <h1>Controller.php</h1>
  
  <pre><code>use Illuminate\Foundation\Bus\DispatchesJobs;
  use Illuminate\Routing\Controller as CheckController;
  use Illuminate\Foundation\Validation\ValidatesRequests;
  use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
  
  class Controller extends CheckController
  {
      use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
  
  
  }
  </code></pre>
  
  <h1>Custom BaseController (BaseController.php)</h1>
  
  <pre><code>use App\Http\Controllers\Controller;
  
  class BaseController extends Controller
  {
  
      /**
       * Setup the layout used by the controller.
       *
       * @return void
       */
      public $data = array();
  
      public function __construct()
      {
          if (Sentinel::check()) {
              // User is not logged in, or is not activated
              $this-&gt;data['admin'] = Sentinel::getUser();
          }
      }
  
      protected function setupLayout()
      {
          if (!is_null($this-&gt;layout)) {
              $this-&gt;layout = View::make($this-&gt;layout);
          }
      }
  
  }
  </code></pre>
  
  <p>Extending a class named <code>HomeCtontroller</code> to Custom <code>BaseController</code></p>
  
  <pre><code>class HomeController extends BaseController {
  
      protected $layout = 'master';
  
      public function main()
      {
           ...
      }
  
  }
  </code></pre>
  
  <p>And then it gives the following error</p>
  
  <pre><code>Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN)
  Class 'BaseController' not found
  </code></pre>
  
  <p>Would appreciate any sort of pointers.</p>