Route::group( ['middleware' => ['web'] ], function () {
Route::group(['prefix' => 'user'], function () {
Route::get('/login', 'HomeController@login')->name('login');
Route::group(['middleware' => ['auth']], function(){
Route::get('/home', 'HomeController@index')->name('home');
Route::get('/logout', 'HomeController@logout')->name('logout');
});
});
});