title: How to add custom value to Auth::user() in Laravel
body: <p>I've some custom value that I want to use in the whole project when the user logs in. I am writing a function in controllers but calling that static method every time can make code little bit lengthy. Instead of calling the function I want to assign a custom value to <code>Auth::user()</code> so I can use it anywhere in the project. I tried it below code but it won't work<br></p>
  
  <pre><code>public static function getUserDetailById($id){
        //Do Something  and assign value to $custom_val
        Auth::user()-&gt;custom = $custom_val;
  }
  </code></pre>
  
  <p>But It's not working in any controller or view. I tried to check custom value in <code>Auth::user()</code> but it's missing.</p>
  
  <p>Is there any way to add custom value to <code>Auth::user()</code> without adding new column in a table?</p>