title: Laravel PHP : Issue with Custom Middleware Directory
body: <p>For organizing my source with middleware I want to put all my auth middleware in the /App/Http/Middleware/Auth folder I created. As a test i made auth_none.php in the Auth foler.</p>
  
  <pre><code>&lt;?php
  namespace App\Httpd\Middleware\Auth;
  
  use Closure;
  
  class access_none {
  protected $session;
  protected $key;
  
  public function __construct() {
      $this-&gt;session = $_COOKIE['session'];
      $this-&gt;key = $_COOKIE['key'];
  }
  
  public function handle($request, Closure $next) {
      return $next($request);
  }
  }
  </code></pre>
  
  <p>Thats my auth_none.php</p>
  
  <p>And my Kernel.php</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http;
  
  use Illuminate\Foundation\Http\Kernel as HttpKernel;
  
  class Kernel extends HttpKernel
  {
  /**
   * The application's global HTTP middleware stack.
   *
   * These middleware are run during every request to your application.
   *
   * @var array
   */
  protected $middleware = [
      \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class
  ];
  
  /**
   * The application's route middleware groups.
   *
   * @var array
   */
  protected $middlewareGroups = [
      'web' =&gt; [
          \App\Http\Middleware\EncryptCookies::class,
          \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
          \Illuminate\Session\Middleware\StartSession::class,
          \Illuminate\View\Middleware\ShareErrorsFromSession::class,
          \App\Http\Middleware\VerifyCsrfToken::class,
      ],
  
      'api' =&gt; [
          'throttle:60,1',
      ],
  ];
  
  /**
   * The application's route middleware.
   *
   * These middleware may be assigned to groups or used individually.
   *
   * @var array
   */
  protected $routeMiddleware = [
      'https' =&gt; \App\Http\Middleware\Https::class,
      'auth.none' =&gt; \App\Http\Middleware\Auth\access_none::class
  ];
  }
  </code></pre>
  
  <p>And here is the error I am getting on my page.</p>
  
  <pre><code>    ReflectionException in Container.php line 738:
  Class App\Http\Middleware\Auth\access_none does not exist
  in Container.php line 738
  at ReflectionClass-&gt;__construct('App\Http\Middleware\Auth\access_none') in Container.php line 738
  at Container-&gt;build('App\Http\Middleware\Auth\access_none', array()) in Container.php line 633
  at Container-&gt;make('App\Http\Middleware\Auth\access_none', array()) in Application.php line 697
  at Application-&gt;make('App\Http\Middleware\Auth\access_none') in Pipeline.php line 123
  at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request))
  at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
  at Pipeline-&gt;Illuminate\Routing\{closure}(object(Request)) in Https.php line 9
  at Https-&gt;handle(object(Request), object(Closure))
  at call_user_func_array(array(object(Https), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request))
  at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
  at Pipeline-&gt;Illuminate\Routing\{closure}(object(Request))
  at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
  at Pipeline-&gt;then(object(Closure)) in Router.php line 726
  at Router-&gt;runRouteWithinStack(object(Route), object(Request)) in Router.php line 699
  at Router-&gt;dispatchToRoute(object(Request)) in Router.php line 675
  at Router-&gt;dispatch(object(Request)) in Kernel.php line 246
  at Kernel-&gt;Illuminate\Foundation\Http\{closure}(object(Request))
  at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
  at Pipeline-&gt;Illuminate\Routing\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
  at CheckForMaintenanceMode-&gt;handle(object(Request), object(Closure))
  at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request))
  at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
  at Pipeline-&gt;Illuminate\Routing\{closure}(object(Request))
  at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
  at Pipeline-&gt;then(object(Closure)) in Kernel.php line 132
  at Kernel-&gt;sendRequestThroughRouter(object(Request)) in Kernel.php line 99
  at Kernel-&gt;handle(object(Request)) in index.php line 54
  </code></pre>