title: Get category name from category id laravel
body: <p>I am very new to laravel and have two table one post table and one category table. I have only one category related to one post, so i add category id in post table.So now i want to display all post with category name.</p>
  
  <p><strong>post table:</strong>
  id,name,category_id,status</p>
  
  <p><strong>category Table:</strong>
  id,name</p>
  
  <p>i want to dispaly like
  POST NAME
  CATEGORY NAME</p>
  
  <p>I have two model category and post, so how can i write the eloquent relationship or give me a simple way to get the array of post with category name</p>