Created a website using Laravel and worked on a user system.
I use the controller along the resource path:
Route::resource('user', 'UserController');
Which works fine for all normal create, index, store etc functions in the controller.
For my registration form, this is a discovery:
{{ Form::open(array('route' => 'user.store', 'class'=>'small-form form-holder')) }}
Thinking how good it is, I created a login function in my UserController and tried this for my login form:
{{ Form::open(array('route' => 'user.login', 'class'=>'small-form form-holder')) }}
However, this returns an error not determined by the route. Is it because of the resource route that I installed? I know that I can configure my own route, which uses the controller login method, but I like this way of doing something.