title: Laravel route group prefix - variable not working
body: <p><strong>in web.php :</strong></p>
  <pre><code>Route::group(['middleware'=&gt;['checklang','checkmoney']],function(){
      Route::get('/', function () {
      return redirect('/'.session()-&gt;get('lang'));
      });
      
      Route::group([
      'prefix' =&gt; '{locale}',
      'where'=&gt;['locale'=&gt;'[a-zA-Z]{2}']],
   function() {
  
      Route::get('/tour/{id}','HomeController@getTours');
  });
  });
  </code></pre>
  <p><strong>in HomeContoller :</strong></p>
  <pre><code>   public function getTours($id){
   
      dd($id);
  }
  </code></pre>
  <p>when trying to access url : example.com/en/tour/5
  getting result
  <code>en</code> , but should be <code>5</code></p>
  <p>Where is a problem and how to solve it?</p>