title: Middleware function doesnt exist
body: <p>In my web.php I have a route</p>
  
  <pre><code>Route::get('summary_average_fee', 'Summary@AverageFee')-&gt;middleware('CheckParams@dateLimits');
  </code></pre>
  
  <p>Im trying to refrence the dateLimits function in the CheckParams class</p>
  
  <p>My CheckParams class, saved as CheckParams.php in the Middleware folder</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Middleware;
  
  use Closure;
  
  class CheckParams
  {
      /**
       * Handle an incoming request.
       *
       * @param  \Illuminate\Http\Request  $request
       * @param  \Closure  $next
       * @return mixed
       */
      public function dateLimits($request, Closure $next)
      {
          isEmpty($request-&gt;input('startDate'), 'NO_START_DATE');
          isEmpty($request-&gt;input('endDate'), 'NO_END_DATE');
  
          return $next($request);
      }
  
      private function isEmpty($value, $error, $status)
      {
          if(empty($value))
          {
              return response()-&gt;json($error, 422);
          }
      }
  }
  </code></pre>
  
  <p>In the kernal.php file I add this to the routeMiddleware array</p>
  
  <pre><code>'CheckParams' =&gt; \App\Http\Middleware\CheckParams::class
  </code></pre>
  
  <p>When it runs, I get the error that Class CheckParams@dateLimits does not exist</p>