title: Adding form action in html in laravel
body: <p>I am unable to pass url in views html form action tag.</p>
  
  <pre><code>&lt;form method="post" action="??what to write here??" accept-charset="UTF-8"&gt;
  </code></pre>
  
  <p>I want to set it's action to <code>WelcomeController@log_in</code> function in <code>WelcomeController</code> file in controllers.</p>
  
  <p>Here are my routes:</p>
  
  <pre><code>Route::get('/','WelcomeController@home');
  Route::post('/', array('as' =&gt; 'log_in', 'uses' =&gt; 'WelcomeController@log_in'));
  Route::get('home', 'HomeController@index');
  </code></pre>
  
  <p>After submitting it keeps the same url </p>
  
  <pre><code>http://localhost:8000/
  </code></pre>
  
  <p>And the main error line</p>
  
  <pre><code>Whoops, looks like something went wrong.
  </code></pre>
  
  <p>After that there is <code>1/1 TokenMismatchException in compiled.php line 2440:</code></p>