Could you post the code of the controller ?
public function getAccountProfile() {
return View::make('account/profile');
}
I've noticed, that redirect doesn't work when a user is logged in.
Should I put my routes to a group ? If so, can you tell me which should I use ?
Found the solution myself ! I have to put the routes for user in an authenticated group. That's my code:
/*
* Authenticated group
*/
Route::group(array('before' => 'auth'), function() {
/*
* Log out (GET)
*/
Route::get('account/logout', array(
'as' => 'get-account-logout',
'uses' => 'AccountController@getAccountLogout'
));
/*
* Account dashboard - (GET)
*/
Route::get('/account/profile', array(
'as' => 'get-account-profile',
'uses' => 'AccountController@getAccountProfile'
));
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community