title: laravel 5.5 Get user details inside constructor
body: <p>I am building an application with multiple user roles and actions. I did follow the official laravel doc (<a href="https://laravel.com/docs/5.5/middleware#middleware-parameters" rel="noreferrer">https://laravel.com/docs/5.5/middleware#middleware-parameters</a>). </p>
  
  <p>But in my controller's constructor (from where I call the above middleware) I am using Auth facade to get user details. I know how to use Auth facade, I had implemented it on several places inside my application. But when I use it inside the constructor it returns null (in logged in condition - I double checked that).</p>
  
  <p>I implemented it like this, I have to call two controllers(since only registered users can access that page)</p>
  
  <pre><code>public function __construct()
  {
      $role = Auth::user()-&gt;role;
      $this-&gt;middleware('auth');
      $this-&gt;middleware('checkRole:$role');
  }
  </code></pre>
  
  <p>PS: I tried to initialize $role variable as protected and outside the constructor , still not working. Any suggestions will be helpful</p>
  
  <p>Thank you.</p>