title: How to create routes with unlimited sub-pages in Laravel?
body: <p>Is there any way to capture unlimited levels of URLs of sub-pages. My application allows any user to create any level of sub-pages. In my pages table I have parentID.</p>
  
  <pre><code>/{page}/{subpage} // this captures 2 level of pages
  /{page} // this captures 1 level of page
  </code></pre>
  
  <p>I want to capture all URLs ranging from</p>
  
  <p>site.com/food/healthy/fruit/red/apple <strong>to</strong> site.com/fruit/organge <strong>or</strong> site.com/grapes <strong>or</strong> site.com/a/b/c/d/e/f/g/h/i/j and so on.</p>
  
  <p>what would be the most efficient way?</p>