title: Laravel 5.3 Middleware class does not exist
body: <p>I would like to make some authentication based on middleware.. But unfortunately it returns as the class is not exist</p>
  
  <p>Here is my middleware</p>
  
  <p>Staff.php</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Middleware;
  
  use Closure;
  use Auth;
  
  class Staff
  {
      /**
       * Handle an incoming request.
       *
       * @param  \Illuminate\Http\Request  $request
       * @param  \Closure  $next
       * @return mixed
       */
      public function handle($request, Closure $next)
      {
          $user = Auth::user()-&gt;type;
          if ($user == 'S'){
              return $next($request);
          }
  
          return "no";
      }
  }
  </code></pre>
  
  <p>Here is the kernel.php</p>
  
  <pre><code>&lt;?php
  
  namespace App\Console;
  
  use Illuminate\Console\Scheduling\Schedule;
  use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  
  class Kernel extends ConsoleKernel
  {
      /**
       * The Artisan commands provided by your application.
       *
       * @var array
       */
      protected $commands = [
          //
      ];
  
      protected $middleware = [
          \App\http\Middleware\Staff::class,
      ];
  
      /**
       * Define the application's command schedule.
       *
       * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
       * @return void
       */
      protected function schedule(Schedule $schedule)
      {
          // $schedule-&gt;command('inspire')
          //          -&gt;hourly();
      }
  
      /**
       * Register the Closure based commands for the application.
       *
       * @return void
       */
      protected function commands()
      {
          require base_path('routes/console.php');
      }
  }
  </code></pre>
  
  <p>I have tried composer dump-autoload but it doesn't effective.</p>
  
  <p>Here is my route:</p>
  
  <pre><code>Route::get('/staff', 'StaffController@index')-&gt;middleware('Staff');
  </code></pre>