title: multiple prefix with the same route group
body: <p>im writing a fairly simple website for a school ... this website has news , articles , video clips ... etc </p>
  
  <p>the way it works is in  the home page we present visitor with some lessons like </p>
  
  <pre><code>&gt;math 
  &gt;geography 
  &gt;chemistry 
  </code></pre>
  
  <p>user selects 1 on these and website contents changes based on the user selection</p>
  
  <p>for example if user selects math he will see news , article , videos  about math and so on ... right now this is what im doing (pleas ignore syntax errors) </p>
  
  <pre><code>Route::group(['prefix'=&gt;'math'], function () {
      Route::get('/news', 'NewsController@index')-&gt;name('news_index');
      Route::get('/article', 'ArticleController@index')-&gt;name('article_index');
  });
  
  Route::group(['prefix'=&gt;'geography'], function () {
      Route::get('/news', 'NewsController@index')-&gt;name('news_index');
      Route::get('/article', 'ArticleController@index')-&gt;name('article_index');
  });
  
  Route::group(['prefix'=&gt;'chemistry'], function () {
      Route::get('/news', 'NewsController@index')-&gt;name('news_index');
      Route::get('/article', 'ArticleController@index')-&gt;name('article_index');
  });
  </code></pre>
  
  <p>basically repeating all links for each prefix .... but as the links grow it will become more and more unmanageable  ... is there any better way to do this ?  something like</p>
  
  <pre><code>Route::group(['prefix'=&gt;['chemistry','math' , 'geography' ], function () {
      Route::get('/news', 'NewsController@index')-&gt;name('news_index');
      Route::get('/article', 'ArticleController@index')-&gt;name('article_index');
  });
  </code></pre>
  
  <p>------------------------- update -------------</p>
  
  <p>i've tried this </p>
  
  <pre><code>$myroutes =  function () {
      Route::get('/news', 'NewsController@index')-&gt;name('news_index');
      Route::get('/article', 'ArticleController@index')-&gt;name('article_index');
  };
  
  Route::group(['prefix' =&gt; 'chemistry'], $myroutes);
  Route::group(['prefix' =&gt; 'math'], $myroutes);
  Route::group(['prefix' =&gt; 'geography'], $myroutes);
  </code></pre>
  
  <p>and it works fine , the problem  is the last prefix gets attached to all the internal links </p>
  
  <p>for example if i click on math</p>
  
  <p>my links  will be</p>
  
  <p>site.com/math/news </p>
  
  <p>but all the links on the loaded page like</p>
  
  <pre><code>&lt;a href="{{route('article_index')"&gt; link to article &lt;/a&gt;
  </code></pre>
  
  <p>look like</p>
  
  <p>site.com/geography/article </p>
  
  <p>basically link get the last mentioned prefix regardless of currently selected one </p>