title: How to read yaml files in laravel?
body: <p>In the project I'm working on, it's a CMS, and within it I manage brand website themes. My question is I need to read the header of the file, how do I do this inside the controller?</p>
  
  <p>I need somehow to read this file and list the titles of headers or footers that exist in it.</p>
  
  <ul>
  <li>header:</li>
  <li>header_submenu_menu</li>
  <li>header_submenu_models</li>
  <li>footer_mobile:</li>
  <li>footer_desktop:</li>
  <li>footer_socialmedia:</li>
  </ul>
  
  <p>I'm using this package: <a href="https://github.com/antonioribeiro/yaml" rel="noreferrer">https://github.com/antonioribeiro/yaml</a></p>
  
  <p><a href="https://i.stack.imgur.com/ZtF0x.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZtF0x.png" alt="menu.yaml"></a></p>