<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of the routes that are handled
| by your application. Just tell Laravel the URIs it should respond
| to using a Closure or controller method. Build something great!
|
*/

Route::get('/login', 'User\LoginController@showLoginPage');

Route::group(['middleware' => 'auth.user'], function(){
    Route::get('/', 'User\UIController@showIndexPage');
});

<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of the routes that are handled
| by your application. Just tell Laravel the URIs it should respond
| to using a Closure or controller method. Build something great!
|
*/

Route::get('/login', 'User\LoginController@showLoginPage');

Route::group(['middleware' => ['auth.user']], function(){
    Route::get('/', 'User\UIController@showIndexPage');
});

Change middleware to be in array instead
Change middleware to be in array instead
