title: Route Grouping and Namespaces
body: <p>i have multiple namespaces in my application namely <strong>FrontEnd</strong> namespace and <strong>BackEnd</strong> namespace, now in my routes file i would like to know the correct way to direct each route to a namespace.</p>
  
  <p>This is what i have at the moment:</p>
  
  <pre><code>Route::group(['namespace' =&gt; 'FrontEnd'], function()
  {
  
      Route::group(array('prefix' =&gt; '/api/v1/'), function() 
      {
  
      });
  
  
  });
  </code></pre>
  
  <p>Now the above works alright (at least when i tried it) but just to make sure i was doing the right thing i wanted to ask so i don't experience and problems in the future.</p>
  
  <p>I would like to know if this is the correct way of going about it instead:</p>
  
  <pre><code>Route::group(array('prefix' =&gt; '/api/v1/'), function() 
  {
      Route::group(['namespace' =&gt; 'FrontEnd'], function()
      {
  
  
      });
  
  
  });
  </code></pre>
  
  <p>Or does it not matter at all whichever way i decide to go?</p>