module shop crud

This commit is contained in:
2024-10-16 16:06:25 +03:00
parent b7ac923261
commit 209b1e3f29
15 changed files with 414 additions and 22 deletions

View File

@ -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;
}