<?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 = null, ?string $default = null): ?string{}  	public function translations(): MorphMany{}  	public function defaultTranslationLocale(): string{}  	public function isDefaultLocale(?string $locale = null): bool{}  	public function scopeTranslationIncludes(Builder $query, ?string $lang = null): Builder{}  	public function updateTranslations(array $columns = []): self{}  	protected static function bootHasTranslations(): void 	{ 		static::deleting(function ($model) { 			$model->translations->each(function ($item) { 				$item->delete(); 			}); 		}); 	} }