title: Routing and controllers
body: <p>I am new to laravel and just tried some examples. This is:</p>
  
  <p><code>laravel-master\app\controllers\account.php -</code></p>
  
  <pre><code>class AccountController extends BaseController
  {
      public function action_index()
      {
          echo "This is the profile page.";
      }
      public function action_login()
      {
          echo "This is the login form.";
      }
      public function action_logout()
      {
          echo "This is the logout action.";
      }
  }
  </code></pre>
  
  <p>Then i added one line at - <code>laravel-master\app\routes.php</code></p>
  
  <pre><code>Route::controller('account');
  </code></pre>
  
  <p>So when i will go to the main page</p>
  
  <ul>
  <li>myproject/account/login it should show 
  "This is the login form." . </li>
  </ul>
  
  <p>but its showing </p>
  
  <ul>
  <li><code>Missing argument 2 for Illuminate\Routing\Router::controller(), called in C:\Program Files\Zend\Apache2\htdocs\laravel-master\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php on line 177 and defined</code>.</li>
  </ul>
  
  <p>Don't know what is the problem . Am i wrong somewhere ?</p>