Added AuthController

This commit is contained in:
James Brooks
2014-11-24 15:33:36 +00:00
parent f5765be597
commit 49c74da90e
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<?php
/**
* Logs users into their account
*/
class DashboardController extends Controller {
public function showLogin() {
return 'Coming soon...';
}
public function logoutAction() {
Auth::logut();
return Redirect::to('/');
}
}

View File

@@ -10,6 +10,11 @@
});
});
Route::get('/auth/login', 'AuthController@showLogin');
Route::group(['before' => 'auth'], function() {
// Dashboard/Management Panel etc.
Route::get('/dashboard', 'DashboardController@showDashboard');
// Authorization stuff.
Route::get('/auth/logout', 'AuthController@logoutAction');
});