title: dynamic url(separated by slash) paramters get to array? (eg : /category,cat1,cat2/types,type1,type2)
body: <p><strong>have a good day guys!, im currently working on eCommerce like product filter,controller get request from front-end main category and parameters separated by slash('/'). URL parameters send like this:</strong></p>
  <pre><code>example.com/skin-care/categories,facial-cleansers-toners/collection,classic/skin-types,normal,soft
  </code></pre>
  <p>these URL open when user select attributes from filter. so after <code>example.com/skin-care/</code> is totally dynamic.</p>
  <p><code>/skin-care </code> - main category
  after first slash separate, all parameters dynamic attributes.
  eg : <code>/{attribute},value1,value1,..</code></p>
  <p>so above examples have 1 main category slug and, 3 attributes (categories,collection,skin-types) and values of that attributes</p>
  <p>i just need get these attributes to Associative array. just like this:</p>
  <pre><code>$attributes = ['categories' =&gt; ['facial-cleansers-toners'],
          'collection' =&gt; ['classic'],
          'skin-types' =&gt; ['normal','soft']
          ];
          
      
  </code></pre>
  <p>thank you</p>