Hmm.. you are only allowed to have one controller per route in your routes.php .
You can set your RESTful controller to a new route to reference
For example:
<?php
//route to get the log in form
Route::get('/', array('uses' => 'HomeController@showLogIn'));
//route to process the log in form
Route::post('/login', ['uses' => 'LogInController@doLogIn', 'as' => 'login.form']);
Route::controller('/login', 'LogInController');
Then in your view change your Form::open to:
{{ Form::open([route'=>'login.form', 'method' => 'post')] }}
its now showing the error 'something went wrong'
it is working ,i think my validation code has a problem. I commented it out and commanted to direct the user to the laravel welcome page and it worked
here is where I changed
//route to process the log in form
Route::post('/controller', array('uses' => 'HomeController@doLogIn'));
I edited the doLogIn function to
public function doLogIn()
{
return View::make('hello');
}
andyblem said:
its now showing the error 'something went wrong'
Go to the file 'app.php' and set debug to true to give yourself a helping hand in the future.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community