title: Laravel routing groups
body: <p>I have a question about routing groups.  I have two types of users and I can not use the role system.  Following the laracast email verification video I was able to get a new type of user to work.  So I can login and register no problem.  However when I have both types of  users routes going it starts rejecting logins and such. </p>
  
  <p>I even tried separating the admin user routes and putting the artist user routes on a different php document but still will not allow two types of logins or to view the proper dashboard.  </p>
  
  <p>I have tried using namespace inside the group, prefix, and tried middleware to no avail.  </p>
  
  <p>Here's the routing code.</p>
  
  <pre><code>Route::group(['middleware' =&gt; ['web']], function () {
  
  Route::get('/', function () {
      return view('welcome');
  });
  Route::get('/artist', function () {
  return view('artist');
  
  });
      Route::get('/sponsor', function () {
  return view('sponsor');
  
  });
      Route::get('/viewer', function () {
  return view('viewer');
  
  });
      Route::get('/contact', function () {
  return view('contact');
  
  });
  
  // This is for the Artist Linkings
  //Route::group(['middleware' =&gt; 'artist'], function () {
          //Route::auth('artist');
      //Route::get('art/dashboard', 'SessionsController@index');
  
  //Route::get('art/dashboard', ['middleware' =&gt; 'artist', function() {
  //return view('art/dashboard');
  //}]);
      //});
  //Route::get('art/register', 'RegistrationController@register');
  //Route::post('art/register', 'RegistrationController@postRegister');
  
  //Route::get('register/confirm/{token}',        'RegistrationController@confirmEmail');
  
  
  //Route::get('art/login', 'SessionsController@login');
  //Route::post('login', 'SessionsController@postLogin');
  //Route::get('/logout', 'SessionsController@logout');
  //Route::get('art/dashboard', 'SessionsController@index');
  //});
  
  // Need to add the password stuff ect
  
  // Route::group(['prefix' =&gt; 'viewer', 'namespace' =&gt; 'Viewer'], function () {
    //  require app_path('Http/Routes/viewers.php');
  // });
  
  
  
  // This is for all the Viewer Linkings
  
  
  Route::get('viewer/register', 'ViewerRegistrationController@register');
  Route::post('viewer/register', 'ViewerRegistrationController@postRegister');
  
  Route::get('viewer/register/confirm/{token}', 'ViewerRegistrationController@confirmEmail');
  
  
  Route::get('viewer/login', 'ViewerSessionsController@login');
  Route::post('login', 'ViewerSessionsController@postLogin');
  Route::get('/logout', 'ViewerSessionsController@logout');
  Route::get('viewer/dashboard', 'ViewerSessionsController@index');
  //});   
  //}]);  
  </code></pre>