flash, middleware

This commit is contained in:
2024-10-17 14:55:00 +03:00
parent c3c377a4e2
commit 4355651695
22 changed files with 226 additions and 75 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;
}