<?php  namespace App\Traits;  use Illuminate\Support\Str; use Illuminate\Database\Eloquent\Builder;  trait HasSlug { 	use HasTranslations;  	public static function getSlugFieldName(): string 	{ 		return 'slug'; 	}  	public static function generateSlug(?string $value, ?string $lang = null): ?string 	{ 		return $value ? Str::slug($value, '-', $lang) : null; 	}  	public function scopeViaTranslatedSlug(object $query, string $slug, string $operand = '='): Builder{} }