title: How to query user with posts in Laravel
body: <p>I'm new to Laravel. I want to display all post including the user who posted the post. I have a simple query which displays all post, and displays selected post using post id.</p>
  
  <pre><code>public function view_post($id)
      {
          $post = User::find($id);
  
          dd($post);
  
      }
  </code></pre>
  
  <p>This is working perfectly fine but I wanted to display all post with the user who posted the post. How can I do this in proper way? </p>