str::slug
Convert a string to a safe version to be used in a URL
str::slug($string, $separator = '-')
Parameters
- $text (string)
- The unsafe string
- $separator (string)
- To be used instead of space and other non-word characters.
Return values
- string
- The safe string