PHPDoc the methods

This commit is contained in:
James Brooks
2014-12-01 08:38:26 +00:00
parent 13b858a99e
commit 4762864c6f
5 changed files with 29 additions and 5 deletions
+12 -1
View File
@@ -4,10 +4,18 @@
* Logs users into their account
*/
class AuthController extends Controller {
/**
* Shows the login view.
* @return \Illuminate\View\View
*/
public function showLogin() {
return View::make('auth.login');
}
/**
* Logs the user in.
* @return \Illuminate\Http\RedirectResponse
*/
public function postLogin() {
if (Auth::attempt(Input::only(['email', 'password']))) {
return Redirect::intended('dashboard');
@@ -18,9 +26,12 @@ class AuthController extends Controller {
}
}
/**
* Logs the user out, deleting their session etc.
* @return \Illuminate\Http\RedirectResponse
*/
public function logoutAction() {
Auth::logout();
return Redirect::to('/');
}
}