Skip to content

Commit

Permalink
Add language to str_slug helper (#19011)
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandobandeira authored and taylorotwell committed Apr 30, 2017
1 parent 017e34f commit deefa1f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Illuminate/Support/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -845,11 +845,12 @@ function str_singular($value)
*
* @param string $title
* @param string $separator
* @param string $language
* @return string
*/
function str_slug($title, $separator = '-')
function str_slug($title, $separator = '-', $language = 'en')
{
return Str::slug($title, $separator);
return Str::slug($title, $separator, $language);
}
}

Expand Down

0 comments on commit deefa1f

Please sign in to comment.