title: Laravel 5.2 login doesn't work, no redirect and no errors
body: <p>my Laravel login worked last week and now it doesn't (using the standard login generated by Laravel). I don't get an error message (wrong password, exceptions, anything). Every time I press "Login" it reloads the page. I have set the redirect to /member. Does anyone have an idea how to fix this?</p>
  
  <p>Here are some files:</p>
  
  <p>routes.php:
          
  
  <pre><code>/*
  |--------------------------------------------------------------------------
  | Application Routes
  |--------------------------------------------------------------------------
  |
  | Here is where you can register all of the routes for an application.
  | It's a breeze. Simply tell Laravel the URIs it should respond to
  | and give it the controller to call when that URI is requested.
  |
  */
  
  if(env("APP_ENV") == "prod"){
      Route::get('/', function() {
          return view("pages.demo");
      });
  } else {
  
      Route::get('/', 'PagesController@index');
  
      Route::group(['middleware' =&gt; ['loggedin']], function(){
          Route::get('member/', function(){
              return redirect('member/dashboard');
          });
          Route::get('member/dashboard', 'PagesController@dashboard');
          Route::get('member/tree', 'TreeController@displayTree');
          Route::get('member/statistics', 'PagesController@statistics');
          Route::get('member/link', 'PagesController@link');
          Route::get('member/advertising-tools', 'PagesController@advertising');
      });
  
      Route::get('/click/{idhash}', 'ClickController@clickHandler');
  
  
  
      //Route::get('/login', 'PagesController@login');
      //Route::get('/register', 'PagesController@register');
      Route::auth();
  }
  </code></pre>
  
  <p>login.blade.php:
      
              </p>
  
  <pre><code>            &lt;div&gt;
                  &lt;h1&gt;
                      &lt;span class="navy"&gt;ReferralTree&lt;/span&gt;
                      &lt;br/&gt;
                      Login
                  &lt;/h1&gt;
              &lt;/div&gt;
              &lt;br/&gt;
              &lt;div class="col-md-8 col-md-offset-2"&gt;
                  &lt;div class="panel panel-default"&gt;
                      &lt;div class="panel-body"&gt;
                          &lt;form class="form-horizontal" role="form" method="POST" action="{{ url('/login') }}"&gt;
                              {!! csrf_field() !!}
  
                              &lt;div class="form-group{{ $errors-&gt;has('user_email') ? ' has-error' : '' }}"&gt;
                                  &lt;label class="col-md-4 control-label"&gt;E-Mail Address&lt;/label&gt;
  
                                  &lt;div class="col-md-6"&gt;
                                      &lt;input type="user_email" class="form-control" name="user_email"
                                             value="{{ old('user_email') }}"&gt;
  
                                      @if ($errors-&gt;has('user_email'))
                                          &lt;span class="help-block"&gt;
                                          &lt;strong&gt;{{ $errors-&gt;first('user_email') }}&lt;/strong&gt;
                                      &lt;/span&gt;
                                      @endif
                                  &lt;/div&gt;
                              &lt;/div&gt;
  
                              &lt;div class="form-group{{ $errors-&gt;has('user_password') ? ' has-error' : '' }}"&gt;
                                  &lt;label class="col-md-4 control-label"&gt;Password&lt;/label&gt;
  
                                  &lt;div class="col-md-6"&gt;
                                      &lt;input type="password" class="form-control" name="user_password"&gt;
  
                                      @if ($errors-&gt;has('user_password'))
                                          &lt;span class="help-block"&gt;
                                          &lt;strong&gt;{{ $errors-&gt;first('user_password') }}&lt;/strong&gt;
                                      &lt;/span&gt;
                                      @endif
                                  &lt;/div&gt;
                              &lt;/div&gt;
  
                              &lt;div class="form-group"&gt;
                                  &lt;div class="col-md-6 col-md-offset-4"&gt;
                                      &lt;div class="checkbox"&gt;
                                          &lt;label&gt;
                                              &lt;input type="checkbox" name="remember"&gt; Remember Me
                                          &lt;/label&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
  
                              &lt;div class="form-group"&gt;
                                  &lt;div class="col-md-6 col-md-offset-4"&gt;
                                      &lt;button type="submit" class="btn btn-primary"&gt;
                                          &lt;i class="fa fa-btn fa-sign-in"&gt;&lt;/i&gt;Login
                                      &lt;/button&gt;
  
                                      &lt;a class="btn btn-link" href="{{ url('/password/reset') }}"&gt;Forgot Your
                                          Password?&lt;/a&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/form&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>AuthController.php:</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers\Auth;
  
  use App\User;
  use Validator;
  use App\Http\Controllers\Controller;
  use Illuminate\Foundation\Auth\ThrottlesLogins;
  use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
  
  class AuthController extends Controller
  {
      /*
      |--------------------------------------------------------------------------
      | Registration &amp; Login Controller
      |--------------------------------------------------------------------------
      |
      | This controller handles the registration of new users, as well as the
      | authentication of existing users. By default, this controller uses
      | a simple trait to add these behaviors. Why don't you explore it?
      |
      */
  
      use AuthenticatesAndRegistersUsers, ThrottlesLogins;
  
      /**
       * Where to redirect users after login / registration.
       *
       * @var string
       */
      protected $redirectTo = '/member';
  
      /**
       * Create a new authentication controller instance.
       *
       * @return void
       */
      public function __construct()
      {
          $this-&gt;middleware($this-&gt;guestMiddleware(), ['except' =&gt; 'logout']);
      }
  
      /**
       * Get a validator for an incoming registration request.
       *
       * @param  array $data
       * @return \Illuminate\Contracts\Validation\Validator
       */
      protected function validator(array $data)
      {
          return Validator::make($data, [
              'user_firstname' =&gt; 'required|max:255',
              'user_lastname' =&gt; 'required|max:255',
              'user_email' =&gt; 'required|email|max:255|unique:users',
              'password' =&gt; 'required|min:6|confirmed',
          ]);
      }
  
      /**
       * Create a new user instance after a valid registration.
       *
       * @param  array $data
       * @return User
       */
      protected function create(array $data)
      {
  
          $cookie = request()-&gt;cookie('referrer');
          if($cookie != null) {
              $user_click_id = request()-&gt;cookie('referrer');
          } else {
              $user_click_id = 0;
          }
  
              $user_create = User::create([
                  'user_firstname' =&gt; $data['user_firstname'],
                  'user_lastname' =&gt; $data['user_lastname'],
                  'user_email' =&gt; $data['user_email'],
                  'user_password' =&gt; bcrypt($data['password']),
                  'user_country' =&gt; $data['user_country'],
                  'user_city' =&gt; $data['user_city'],
                  'user_streetname' =&gt; $data['user_streetname'],
                  'user_zipcode' =&gt; $data['user_zipcode'],
                  'user_dob' =&gt; $data['user_dob'],
                  'user_click_id' =&gt; $user_click_id,
                  'user_registerip' =&gt; $_SERVER['REMOTE_ADDR']
              ]);
  
  
  
          $user_create-&gt;user_id_hash = md5($user_create-&gt;user_id);
          $user_create-&gt;save();
  
          return $user_create;
      }
  
  
      public function postLogin(Request $request)
      {
          $this-&gt;validate($request, [
              'user_email' =&gt; 'required|email', 'user_password' =&gt; 'required',
          ]);
  
          $credentials = $request-&gt;only('user_email', 'user_password');
  
          if ($this-&gt;auth-&gt;attempt($credentials, $request-&gt;has('remember'))) {
              return redirect()-&gt;intended($this-&gt;redirectPath());
          }
  
          return redirect($this-&gt;loginPath())
              -&gt;withInput($request-&gt;only('user_email', 'remember'))
              -&gt;withErrors([
                  'user_email' =&gt; $this-&gt;getFailedLoginMessage(),
              ]);
      }
  }
  </code></pre>
  
  <p>If you need more info I will post it here.</p>
  
  <p>php artisan route:list</p>
  
  <pre><code>+--------+----------+--------------------------+------+-----------------------------------------------------------------+---------------+
  | Domain | Method   | URI                      | Name | Action                                                          | Middleware    |
  +--------+----------+--------------------------+------+-----------------------------------------------------------------+---------------+
  |        | GET|HEAD | /                        |      | App\Http\Controllers\PagesController@index                      | web           |
  |        | GET|HEAD | click/{idhash}           |      | App\Http\Controllers\ClickController@clickHandler               | web           |
  |        | GET|HEAD | login                    |      | App\Http\Controllers\Auth\AuthController@showLoginForm          | web,web,guest |
  |        | POST     | login                    |      | App\Http\Controllers\Auth\AuthController@login                  | web,web,guest |
  |        | GET|HEAD | logout                   |      | App\Http\Controllers\Auth\AuthController@logout                 | web,web       |
  |        | GET|HEAD | member                   |      | Closure                                                         | web,loggedin  |
  |        | GET|HEAD | member/advertising-tools |      | App\Http\Controllers\PagesController@advertising                | web,loggedin  |
  |        | GET|HEAD | member/dashboard         |      | App\Http\Controllers\PagesController@dashboard                  | web,loggedin  |
  |        | GET|HEAD | member/link              |      | App\Http\Controllers\PagesController@link                       | web,loggedin  |
  |        | GET|HEAD | member/statistics        |      | App\Http\Controllers\PagesController@statistics                 | web,loggedin  |
  |        | GET|HEAD | member/tree              |      | App\Http\Controllers\TreeController@displayTree                 | web,loggedin  |
  |        | POST     | password/email           |      | App\Http\Controllers\Auth\PasswordController@sendResetLinkEmail | web,web,guest |
  |        | POST     | password/reset           |      | App\Http\Controllers\Auth\PasswordController@reset              | web,web,guest |
  |        | GET|HEAD | password/reset/{token?}  |      | App\Http\Controllers\Auth\PasswordController@showResetForm      | web,web,guest |
  |        | GET|HEAD | register                 |      | App\Http\Controllers\Auth\AuthController@showRegistrationForm   | web,web,guest |
  |        | POST     | register                 |      | App\Http\Controllers\Auth\AuthController@register               | web,web,guest |
  +--------+----------+--------------------------+------+-----------------------------------------------------------------+---------------+
  </code></pre>