title: Laravel - How to pass variables to middleware through route group?
body: <p>This is my route group,</p>
  
  <pre><code>Route::group(['middleware' =&gt; 'checkUserLevel'], function () {
                  // my routes
              });
  </code></pre>
  
  <p>And this is my middleware <strong>checkUserLevel</strong>,</p>
  
  <pre><code>public function handle($request, Closure $next, $level)
      {
          $user = Auth::user();
          if ($user-&gt;level &gt; $level) {
              return redirect('testUrl');
          }
  
          return $next($request);
      }
  </code></pre>
  
  <p>I want to pass the <code>$level</code> variale to middleware from route group.
  Thanks.</p>