Override slugify - replace + symbol with " plus" for Model names
garethshaw - 6 months ago
Hi Take S800 and S800+, when slugified they both come out as s800, instead I want s800 and s800-plus. I came up with:
// slugify it $make_name = trim(str_replace("+", " plus", $make_name)); $make_name_slugified = trim($this->str->slug($make_name, "-"));
However I'd like to be ABLE to use this throughout my application, i.e. not fully override and make this the default, what's the best way to make this a globally available function without fully overriding the slug function for every module?