title: error 419 page expired when trying to redirect users based on their role in the login page
body: <p>I am trying to redirect users based on their user role in the table </p>
  
  <pre><code>public function redirectTo()
  {
    $auth = Auth::user()-&gt;type;
    switch ($auth) 
    {
      case 'default':
        return redirect()-&gt;route('user');
        break;
      case 'admin':
        return redirect()-&gt;route('admin');
        break;
      default;
        return redirect()-&gt;route('user');
        break;
    }
  }
  </code></pre>
  
  <p>but I keep getting 419 page expired error.</p>