title: Use custom function in Controller when using resource in routes - Laravel
body: <p>Been building a framework website using Laravel and working on the user system.</p>
  
  <p>I am using the controller by a resource route:</p>
  
  <pre><code>Route::resource('user', 'UserController');
  </code></pre>
  
  <p>Which works fine for all the normal create, index, store etc function in the controller.</p>
  
  <p>For my registration form this is the opening:</p>
  
  <pre><code>{{ Form::open(array('route' =&gt; 'user.store', 'class'=&gt;'small-form form-holder')) }}
  </code></pre>
  
  <p>Thinking how nice this is, I created a login function in my UserController and tried this for my login form:</p>
  
  <pre><code>{{ Form::open(array('route' =&gt; 'user.login', 'class'=&gt;'small-form form-holder')) }}
  </code></pre>
  
  <p>However this returns a route not defined error. Is this because of the resource route that I set? I know I could set a custom route which uses the controllers login method but I like this way of doing things.</p>