<?php  namespace App\Traits;  use App\Models\Translation; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Relations\MorphMany;  trait HasTranslations { 	public function getTranslation(string $column, string $locale, ?string $default = null): ?string{}  	public function translations(): MorphMany{}  	public function updateTranslations(array $columns = []): self{}  	public function scopeTranslationIncludes(object $query, ?string $lang = null): Builder{}  	public static function defaultTranslationLocale(): string 	{ 		return 'hr'; 	}  	public function determineTranslation(?string $lang, string $key): ?string{}  	public function getTranslationIfExistsOrGiveNull(?string $lang, string $column): ?string{}  	protected static function bootHasTranslations(): void 	{ 		static::deleting(function ($model): void { 			$model->translations->each(function ($item): void { 				$item->delete(); 			}); 		}); 	} }