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:
example.com/skin-care/categories,facial-cleansers-toners/collection,classic/skin-types,normal,soft
these URL open when user select attributes from filter. so after example.com/skin-care/ is totally dynamic.
/skin-care - main category
after first slash separate, all parameters dynamic attributes.
eg : /{attribute},value1,value1,..
so above examples have 1 main category slug and, 3 attributes (categories,collection,skin-types) and values of that attributes
i just need get these attributes to Associative array. just like this:
$attributes = ['categories' => ['facial-cleansers-toners'],
'collection' => ['classic'],
'skin-types' => ['normal','soft']
];
thank you
