title: laravel route error class not found
body: <p>I am new to the Laravel framework and I am stuck with routing. </p>
  
  <p>Folder structure:</p>
  
  <pre><code>app  
       controllers\ 
                     admin\ authcontroller.php
  </code></pre>
  
  <p>Routes:</p>
  
  <pre><code>Route::get('admin/logout', array('as' =&gt;'admin.logout', 'uses'=&gt;'App\Controllers\Admin\AuthController@getLogout' ));
  Route::get('admin/login', array('as' =&gt;'admin.login' , 'uses'=&gt;'App\Controllers\Admin\AuthController@getLogin' ));
  Route::get('admin/login',array('as'=&gt;'admin.login.post','uses'=&gt;'App\Controllers\Admin\AuthController@postLogin'));
  
  Route::group( array('prefix' =&gt;'admin' ,'before'=&gt;'auth.admin' ),function (){
  
      Route::any('/','App\Controllers\Admin\PagesController@index');
  
      Route::resource('articles','APP\Controllers\Admin\ArticlesController');
      Route::resource('pages','App\Controllers\Admin\PagesController');
  
  });
  </code></pre>
  
  <p>authcontroller.php</p>
  
  <pre><code>&lt;?php 
  namespace App\Controllers\Admin
  
  use Auth, BaseController, Form, Input, Redirect, Sentry, View;
  
  class Authcontroller extends BaseController
  {
      public function getLogin(){
        die('here');
          return  View::make('admin.auth.login');
      }
      public function postLogin(){
           $credentials= array(
              'email' =&gt;Input::get('email') ,
              'password'=&gt;Input::get('password'),
               );
  
           try{
  
              $user=Sentry::authenticate($credentials,FALSE);
              if($user){
                  return  Redirect::route('admin.pages.index');
              }
           }
  
           catch (Exception $e){
              return  Redirect::route('admin.login')-&gt;withErrors(array('login' =&gt; $e-&gt;getMessage() ));
  
           }
      }
      /*
        logout function
      */
  
        public function  getLogout(){
           Sentry::logout();
           return  Redirect::route('admin.login');
        }
  }
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Class App\Controllers\Admin\AuthController does not exist</p>
  </blockquote>
  
  <p>what is make that error appear </p>
  
  <p>also when i run composer dump-autoload from the CMD
  i did not found the namespace loaded in autoload_namespaces.php file </p>