$routes->post('/profile/password/update', 'auth', function () {
    ProfileController::updatePassword();
});
// Controlpanel
$routes->get('/controlpanel', 'admin', function () {
    AuthController::controlpanel();
});
// Users
$routes->get('/users', 'admin', function () {
    UsersController::index();
});
$routes->get('/users/create', 'admin', function () {
    UsersController::create();
});
$routes->post('/users/store', 'admin', function () {
    UsersController::store();
});
$routes->get('/users/:id/destroy', 'admin', function ($id) {
    UsersController::destroy($id);
});
// Roles
$routes->get('/roles', 'admin', function () {
    RolesController::index();
});
$routes->get('/roles/create', 'admin', function () {
    RolesController::create();
});
$routes->post('/roles/store', 'admin', function () {
    RolesController::store();
});
$routes->get('/roles/:id/edit', 'admin', function ($id) {
Beispiel #2
0
    $obj = new RegisterController() ;
    return $obj->store();
});

// login
Route::get('login', array('uses' => 'HomeController@showLogin'));
Route::post('login', array('uses' => 'HomeController@doLogin'));
// logout
Route::get('logout', array('uses' => 'HomeController@doLogout'));
*/
Route::get('/users', function () {
    return View::make('users');
});
Route::post('users_action', function () {
    $obj = new UsersController();
    return $obj->store();
});
Route::get('/comments', function () {
    return View::make('comments');
});
Route::post('comments_action', function () {
    $obj = new CommentsController();
    return $obj->store();
});
Route::get('/supports', function () {
    return View::make('supports');
});
Route::post('supports_action', function () {
    $obj = new SupportsController();
    return $obj->store();
});