title: Controller in subfolder with namespace in laravel-4.1
body: <p>I have the following code:</p>
  
  <pre><code>Route::group(array('namespace' =&gt; 'admin'), function() {
  
      Route::group(array('prefix' =&gt; 'admin'), function() {
  
              Route::get('group', array('as' =&gt; 'adminGroup', 'uses' =&gt; 'GroupController@index'));
  
              Route::get('group/index', array('as'   =&gt; 'adminGroupIndex',
                      'uses' =&gt; 'GroupController@index'));
      });
  });
  </code></pre>
  
  <p>and controller</p>
  
  <pre><code>namespace admin;
  
  class GroupController extends \BaseController {
  
      protected $layout = 'dashboard';
  
      public function index()
      {
              $this-&gt;layout-&gt;content = \View::make('admin/group/index');
      }
  
  }
  </code></pre>
  
  <p>If I point the URL to:</p>
  
  <pre><code>http://localhost/laravel/public/admin/group/index
  </code></pre>
  
  <p>works perfectly, but when I point to:</p>
  
  <pre><code>http://localhost/laravel/public/admin/group
  </code></pre>
  
  <p>does not work. It just redirects to:</p>
  
  <pre><code>http://localhost/laravel/public/user/login
  </code></pre>
  
  <p><strong>But when I do not use subfolder everything works perfectly!</strong></p>
  
  <p>EDIT: SOLVED</p>
  
  <p>I had started installing laravel administrator and then stopped, because there was not installed an authentication system. So I installed Sentry2 and was configuring management groups. After analyzing a little more settings Laravel Administrator, I realized that it was using the URI 'admin' and also redirected to 'user / login' if I was not authenticated.</p>
  
  <p>Now everything is working perfectly!</p>