flash, middleware
This commit is contained in:
@ -132,9 +132,9 @@ class Slug
|
||||
* @param $model
|
||||
* @return string
|
||||
*/
|
||||
public static function createSlug(string $title, $model = null): string
|
||||
public static function createSlug(string $data, $model = null): string
|
||||
{
|
||||
$slug = Slug::url_slug($title, ['transliterate' => true, 'lowercase' => true]);
|
||||
$slug = Slug::url_slug($data, ['transliterate' => true, 'lowercase' => true]);
|
||||
if ($model === null) {
|
||||
return $slug;
|
||||
}
|
||||
|
Reference in New Issue
Block a user