Skip to content

Instantly share code, notes, and snippets.

@jonathanmarvens
Last active December 19, 2015 20:49
Show Gist options
  • Save jonathanmarvens/6016092 to your computer and use it in GitHub Desktop.
Save jonathanmarvens/6016092 to your computer and use it in GitHub Desktop.
Browsing to `http://<your_app_domain>/` should now redirect (HTTP 302) you to `http://<your_app_domain>/users/login`.
<?php
class UserController extends \BaseController {
public function getLogin() {
return 'I\'m in!';
}
}
<?php
Route::controller(
'users',
'UserController',
[
'getLogin' => 'user_login',
]
);
Route::get('/', function () {
return Redirect::route('user_login');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment