Skip to content

Commit

Permalink
Merge pull request #1072 from ludo237/patch-1
Browse files Browse the repository at this point in the history
Add str_slug description to Helpers.md
  • Loading branch information
taylorotwell committed Feb 2, 2015
2 parents 0150593 + c3ecb68 commit b6f84ff
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,18 @@ Generate a random string of the given length.
Convert a string to its singular form (English only).

$singular = str_singular('cars');

### str_slug

Generate a URL friendly "slug" from a given string.

str_slug($title, $separator);

Example:

$title = str_slug("Laravel 5 Framework", "-");

// laravel-5-framework

### studly_case

Expand Down

0 comments on commit b6f84ff

Please sign in to comment.