title: How to get logged in user data into Laravel controller
body: <p>I am working on laravel 5.4, i have used the auth for user login at client side,now i want the logged in user details at the Controller,</p>
  <p>view side by writing below code i got that:</p>
  <pre><code>{{ Auth::user()-&gt;name }} // this works on view page only.
  </code></pre>
  <p>Suggest me the library files with the code.
  I want to display some user data like name,age,dob,etc after logged in.</p>