title: InvalidArgumentException Route [login] not defined
body: <p><a href="https://i.stack.imgur.com/kP0og.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kP0og.png" alt="enter image description here"></a></p>
  
  <p>I am unable to detect the problem. When I remove admin panel routes from the middle ware auth group it works really fine. But with that routes it through this exception.</p>
  
  <p>Here is my routes file.  </p>
  
  <pre><code>   Route::group(['middleware'=&gt;['auth']],function(){
  
  
          Route::post('/signin','userController@postSignIn')-&gt;name("signin");
       });
  
  My controller function is :
  
       public function postSignIn(Request $request)
      {
          $this-&gt;validate($request,[
              'email' =&gt; 'required|email',
              'password' =&gt; 'required|min:6',
          ]);
          $email = $request['email'];
          $user = User::where("email",$email)-&gt;first();
  
          if(Auth::attempt(['email' =&gt; $request['email'],'password' =&gt; $request['password']]))
          {
              if ($user['verified'] == 1){
                  if ($user['role'] == 2) {
                      return redirect()-&gt;route('dashboardd');
  
                  }
                  else if($user['role'] == 0 &amp;&amp; $user['blocked'] == 1 ){
                      $message = 'Your account has been blocked by admin';
                      return redirect()-&gt;back()-&gt;with('message',$message);
  
                  }else if($user['role'] == 1 &amp;&amp; $user['blocked'] == 1 ){
                      $message = 'Your account has been blocked by admin';
                      return redirect()-&gt;back()-&gt;with('message',$message);
                  }
                  else{
                      return redirect()-&gt;route('news-feed');
  //                return view('frontend.layouts.user_login_layout',compact('posts','comments','keywords','regular'));
                  }
              }
              else
              {
                  $message = 'Account not verified! Verify Email to activate your account';
                  return redirect()-&gt;route('home')-&gt;with('message',$message);
              }
  
          }else{
              $message = 'Wrong Credentials , Try Again !  ';
              return redirect()-&gt;back()-&gt;with('message',$message);
          }
      }
  </code></pre>
  
  <p>These routes cause the problem . which are related to admin panel.
  I have the same user table for admins and users. When I remove admin panel routes from the group user can login perfectly. but when I add these routes user can't login nor the admin.</p>
  
  <pre><code>    //admin-panel routes
  
  Route::get('importExport', 'ExcelImportController@importExport');
  Route::post('importExcel', 'ExcelImportController@importExcel');
  Route::post('/logicsubmit','AdminController@logicsubmit')-&gt;name("logicsubmit");
  Route::get('/RegularUser','AdminController@Regulars')-&gt;name("RegularUser");
  Route::get('/Company','AdminController@Companies')-&gt;name("Company");
  Route::post('/signup','userController@userSignUp')-&gt;name("signup");
  Route::post('/companysignup','CompanyController@companySignUp')-&gt;name("companysignup");
  Route::get('/logout','userController@logout')-&gt;name("logout");
  Route::get('/dashboardd','AdminController@index')-&gt;name("dashboardd");
  Route::get('/admit','AdminController@admit')-&gt;name("admit");
  Route::get('/admin','AdminController@admin')-&gt;name("admin");
  Route::get('/admins','AdminController@admins')-&gt;name("admins");
  
  Route::get('/lock', 'AdminController@lock')-&gt;name("lock");
  Route::post('/adminsignup','AdminController@AdminSignUp')-&gt;name("adminsignup");
  Route::get('/view/{id}','AdminController@ViewUser')-&gt;name("view");
  Route::get('/block/{id}','AdminController@blockUser')-&gt;name("block");
  Route::get('/unblock/{id}','AdminController@unblockUser')-&gt;name("unblock");
  Route::get('/delete/{id}','AdminController@deleteUser')-&gt;name("delete");
  Route::get('/Addkeywords','AdminController@Addkeywords')-&gt;name("Addkeywords");
  Route::post('/addword','AdminController@addword')-&gt;name("addword");
  Route::get('/editword/{id}','AdminController@editword')-&gt;name("editword");
  Route::get('/deleteword/{id}','AdminController@deleteword')-&gt;name("deleteword");
  Route::post('/updateword/{id}','AdminController@updateword')-&gt;name("updateword");
  
  //end of admin-panel routes
  </code></pre>