title: Controller method not found - laravel 4
body: <p>I have this message whine trying to run any controller</p>
  <blockquote>
  <p>Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException</p>
  <p>Controller method not found.</p>
  </blockquote>
  <p>I have this Code in my Route file</p>
  <pre><code>Route::controller(&quot;/&quot;,&quot;HomeController&quot;);
  
  Route::controller(&quot;users&quot;,&quot;UsersController&quot;);
  </code></pre>
  <p>and this code in my Controller</p>
  <pre><code> &lt;?php
  
  class UsersController extends BaseController
  {
  
      protected $layout = &quot;layouts.main&quot;;
  
      public function __construct()
      {
          $this-&gt;beforeFilter('csrf', array('on' =&gt; 'post'));
          $this-&gt;beforeFilter('auth', array('only' =&gt; array('getDashboard')));
      }
  
      public function getIndex()
      {
         return Redirect::to(&quot;users/register&quot;);
      }
  
      public function getRegister()
      {
          $this-&gt;layout-&gt;content = View::make('users.register');
      }
  
      
      public function postCreate()
      {
          $validator = Validator::make(Input::all(), User::$rules);
          if ($validator-&gt;passes()) {
              // validation has passed, save user in DB
              $user = new User;
              $user-&gt;firstname = Input::get('firstname');
              $user-&gt;lastname = Input::get('lastname');
              $user-&gt;email = Input::get('email');
              $user-&gt;password = Hash::make(Input::get('password'));
              $user-&gt;save();
  
              return Redirect::to('users/login')-&gt;with('message', 'Thanks for registering!');
          } else {
              return Redirect::to('users/register')-&gt;with('message', 'The following errors occurred')-&gt;withErrors($validator)-&gt;withInput();
          }
      }
  
      function getLogin()
      {
          if (Auth::check()) return Redirect::to(&quot;users/dashboard&quot;)-&gt;with('message', 'Thanks for registering!');
  
          $this-&gt;layout-&gt;content = View::make(&quot;users.login&quot;);
      }
  
      function postSignin()
      {
          if (Auth::attempt(array('email' =&gt; Input::get('email'), 'password' =&gt; Input::get('password')))) {
              return Redirect::to('users/dashboard')-&gt;with('message', 'You are now logged in!');
          } else {
              return Redirect::to('users/login')
                  -&gt;with('message', 'Your username/password combination was incorrect')
                  -&gt;withInput();
          }
      }
  
      public function getDashboard()
      {
          $this-&gt;layout-&gt;content = View::make(&quot;users.dashbord&quot;);
      }
  
      public function getLogout()
      {
          Auth::logout();
          return Redirect::to('users/login')-&gt;with('message', 'Your are now logged out!');
      }
  
   
  </code></pre>
  <p>Whine I run this Command</p>
  <pre><code>php artisan routes
  </code></pre>
  <pre>
  +--------+------------------------------------------------------------+------+-------------------------------+----------------+---------------+
  | Domain | URI                                                        | Name | Action                        | Before Filters | After Filters |
  +--------+------------------------------------------------------------+------+-------------------------------+----------------+---------------+
  |        | GET index/{one?}/{two?}/{three?}/{four?}/{five?}           |      | HomeController@getIndex       |                |               |
  |        | GET /                                                      |      | HomeController@getIndex       |                |               |
  |        | GET {_missing}                                             |      | HomeController@missingMethod  |                |               |
  |        | GET users/index/{one?}/{two?}/{three?}/{four?}/{five?}     |      | UsersController@getIndex      |                |               |
  |        | GET users                                                  |      | UsersController@getIndex      |                |               |
  |        | GET users/register/{one?}/{two?}/{three?}/{four?}/{five?}  |      | UsersController@getRegister   |                |               |
  |        | POST users/create/{one?}/{two?}/{three?}/{four?}/{five?}   |      | UsersController@postCreate    |                |               |
  |        | GET users/login/{one?}/{two?}/{three?}/{four?}/{five?}     |      | UsersController@getLogin      |                |               |
  |        | POST users/signin/{one?}/{two?}/{three?}/{four?}/{five?}   |      | UsersController@postSignin    |                |               |
  |        | GET users/dashboard/{one?}/{two?}/{three?}/{four?}/{five?} |      | UsersController@getDashboard  |                |               |
  |        | GET users/logout/{one?}/{two?}/{three?}/{four?}/{five?}    |      | UsersController@getLogout     |                |               |
  |        | GET users/{_missing}                                       |      | UsersController@missingMethod |                |               |
  +--------+------------------------------------------------------------+------+-------------------------------+----------------+---------------+
  </pre>
  <p>whine i trying to access to <code>localhost:8000/users/login</code> or any method in any controller
  this message appear</p>
  <pre><code>Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException
  
  Controller method not found.
  </code></pre>