¨4.0.1¨
This commit is contained in:
@@ -18,10 +18,12 @@ trait Sluggable
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the slug attribute.
|
||||
*
|
||||
* @param string $value
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setSlug($value = null)
|
||||
@@ -33,10 +35,12 @@ trait Sluggable
|
||||
$this->attributes['slug'] = $this->generateSlug($value);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Generate slug by the given value.
|
||||
*
|
||||
* @param string $value
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private function generateSlug($value)
|
||||
|
||||
Reference in New Issue
Block a user