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:
+9
-3
@@ -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');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user