This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Generates slug for a given string for current model. | |
* Prevents duplicates by adding counter while default slug | |
* already exists. | |
* | |
* @param $str | |
* @param string $replacement Chart to replace spaces, special chars etc. | |
* | |
* @return string | |
*/ |