Example #1
0
 /**
  * Get a slugized form of a string.
  *
  * @param  string  $value  Value to obtain a slug from
  *
  * @return string          slugized value
  */
 function str_slug($value)
 {
     return \Anekdotes\Support\Str::slug($value);
 }
Example #2
0
 public function testSlug3()
 {
     $this->assertEquals(Str::slug('foo bar'), 'foo-bar');
 }