title: Convert slash to tilde as Url Separator
body: <p>I have a question how we can separate Url with slash in place of slash
  For example i have a URL like:</p>
  
  <p>1st case</p>
  
  <pre><code>www.domain.com/category/category_id
   then URL shown would be 
  www.domain.com/category~category_id
  </code></pre>
  
  <p>2nd case</p>
  
  <pre><code> www.domain.com/category/subcategory/category_id
   then URL shown would be 
   www.domain.com/category/subcategory~category_id
  </code></pre>
  
  <p>So we would be separating Url when we have situation like this and only last segment would be affected. How we can do this in Php. I am trying to do this thing in Laravel! Any suggestion would be appreciated.</p>
  
  <p>Thanks</p>