You can make own helper (remove mb_strtolower) basing on original str_slug https://github.com/illuminate/support/blob/master/Str.php#L414
Sep 12, 2017
2
Level 1
retaining case when using str_slug()
I have a title like this, "This or That But Not There" as an example.
I'd like the slug to be converted to..
"This-or-That-But-Not-There" instead of the default all lowercase.
I tried str_slug($str) with the above, but it gives me "this-or-that-but-not-there"
Is there a way to retain the capitalization of the string when converting to URL?
Level 7
Please or to participate in this conversation.