title: Method Illuminate\Auth\SessionGuard::users does not exist
body: <p>I'm having a problem with Auth. I'm just learning about Laravel, I'm doing login. I don't know how to fix it it says:</p>
  
  <blockquote>
    <p>Method Illuminate\Auth\SessionGuard::users does not exist.</p>
  </blockquote>
  
  <p>this is my code in login function</p>
  
  <pre><code>public function getlogin(Request $request){
  
    $this-&gt;validate($request, [
      'email'=&gt; 'required|max:32',
      'password'=&gt; 'required|max:32|min:8',
    ]);
    if (Auth::attempt(['email'=&gt;$request-&gt;email,'password'=&gt;$request-&gt;password])) {
      $user = users::where('email','=',$request-&gt;email)-&gt;first();
      return redirect('/messenger')-&gt;with('usersignin');
    }
    return "ooopps something wrong";
  
  }
  </code></pre>
  
  <p>and this is where the name from the database will be display</p>
  
  <pre><code>&lt;div class=""&gt;
            &lt;h1&gt;Welcome
              @if(session('user'))
                {{session('user')}}
              @elseif(session('usersignin'))
                {{ucwords(Auth::users()-&gt;fname)}}
              @endif&lt;/h1&gt;
          &lt;/div&gt;
  </code></pre>