title: Laravel 5.3 Auth:attempt is not working
body: <p>Dont matter if i insert valid or invalid credentials, the user is always redirect to the route defined in RedirectIfAuthenticated middleware. My question: How can i redirect authenticated users to different route than non authenticated user?</p>
  
  <p>RedirectIfAuthenticated (Middleware):</p>
  
  <pre><code>public function handle($request, Closure $next, $guard = null)
      {
          if (Auth::guard($guard)-&gt;check()) {
              return redirect('/');
          }
  
          return $next($request);
  </code></pre>
  
  <p>This is my LoginController:</p>
  
  <pre><code>   public function __construct()
      {
          $this-&gt;middleware('guest', ['except' =&gt; 'logout']);
      }
  
  public function authenticate(Request $data){
      if (Auth::attempt( ['cnpj' =&gt; $data['cnpj'], 'password' =&gt; $data['password'] ] )){
          return redirect()-&gt;route('someroute');
      }
      else{
          return redirect()-&gt;route('login');
  
      }
  </code></pre>
  
  <p>Routes:</p>
  
  <pre><code>Route::get('/', function () {
      return view('welcome');
  }) -&gt; name('/');
  
  Route::post('/register', 'Auth\RegisterController@create');
  
  Route::get('/register', function () {
      return view('auth.register');
  });
  
  Route::get('/login', function (){
      return view('auth.login');
  })-&gt;name('login');
  
  Route::post('/login', 'Auth\LoginController@authenticate');
  </code></pre>