title: How to get a custom value using the method Auth in Laravel?
body: <p>In my laravel project, when i want to get the current user ID, i use this logic bellow:</p>
  
  <pre><code>public function showuserid() {
  
      $userid = Auth::id(); //this is the simplest way i found of how to get the current user's id
  
      return view('perfil/mostrarid')-&gt;with('mostrarid',  $userid);
  
  }
  </code></pre>
  
  <p>My problem is, my table 'users' in my database, has an extra column called 'credencial'.</p>
  
  <p>I tried to do <code>$userid = Auth::credencial();</code> but it doesn't work and i get an error:</p>
  
  <blockquote>
    <p>Method Illuminate\Auth\SessionGuard::credencial does not exist.</p>
  </blockquote>
  
  <p>Can i get that value using Auth somehow? Is there any other way, as simple as Auth, to get the value?</p>