Route::group(['prefix' => 'user', 'as' => 'user.'], function() {
Route::get('login', 'UserController@login');
Route::get('register', 'UserController@register');
Route::group(['middleware' => 'auth'], function() {
Route::get('edit', 'UserController@edit');
});
});