title: How to join pivot table in laravel
body: <p>I have 3 tables like this to show all the categories that each story in it. How to make it show all category use join 3 tables. Should i use join or query in view/blade</p>
  
  <p><a href="https://i.stack.imgur.com/xG92Q.png" rel="nofollow noreferrer">catogory model</a></p>
  
  <p><a href="https://i.stack.imgur.com/k2LPi.png" rel="nofollow noreferrer">story model</a></p>
  
  <p><a href="https://i.stack.imgur.com/fovsC.png" rel="nofollow noreferrer">view/blade</a></p>
  
  <p><a href="https://i.stack.imgur.com/Q9Q1V.png" rel="nofollow noreferrer">structure category</a></p>
  
  <p><a href="https://i.stack.imgur.com/S8Uqz.png" rel="nofollow noreferrer">structure story</a></p>
  
  <p><a href="https://i.stack.imgur.com/Qc5AT.png" rel="nofollow noreferrer">structure pivot tables </a></p>