title: Recursively display dropdown in laravel
body: <p>suppose I have table named <code>categories</code> such as:</p>
  
  <pre><code>id   parent_id  title
  1        0      food
  2        1      drinks
  3        2      juice
  4        0      furniture
  5        3       tables
  </code></pre>
  
  <p>now I want to create dropdown menu on laravel such that it recursively displays child category under parent category with proper indentation or <code>-</code> mark as per depth.E.g.:</p>
  
  <pre><code>&lt;select&gt;
   &lt;option value="1"&gt;food&lt;/option&gt;
   &lt;option value="2"&gt;-drinks&lt;/option&gt;
   &lt;option value="3"&gt;--juice&lt;/option&gt;
   &lt;option value="4"&gt;furniture&lt;/option&gt;
   &lt;option value="5"&gt;-tables&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Above one is static but I want to generate dropdown structure dynamically as like above recursively for any depth of child category from <code>categories</code> table in laravel.</p>