FEATURE: add somehow final login form.

Currently, this form does not point to any existing (resp. working) methods for authentication. For this purpose I need to develop some functionality to add user and have some data for testing.
This commit is contained in:
Michal Kváček
2016-01-20 23:29:00 +01:00
parent 6430a661fb
commit cacad9a8f9
7 changed files with 113 additions and 25 deletions
+9 -3
View File
@@ -23,14 +23,20 @@
*/
Route::group(['middleware' => ['web']], function () {
Route::get('login', 'Admin\LoginForm@showLoginForm');
Route::get('login', function () {
return view('admin.loginForm.form');
});
// POST methods
Route::post('admin/login', 'Admin\Login@postLogin')
->name('login');
});
// list of admin routes
Route::group([
'middleware' => ['auth'],
'namespace' => 'Admin',
'prefix' => 'admin'
], function () {
Route::get('/', 'Dashboard@showIndex');
Route::get('/', 'Dashboard@getIndex');
});