src/Traits/TranslatableObserver.php
public function deleted($model)
    {
        $translationRepository = \App::make(TranslationRepository::class);
        foreach ($model->translatableAttributes() as $attribute) {
            $translationRepository->deleteByCode($model->translationCodeFor($attribute));
        }
    }
public function deleted($model)
    {
        $translationRepository = \App::make(TranslationRepository::class);
        foreach ($model->translatableAttributes() as $attribute) {
            $translationRepository->deleteByCode($model->translationCodeFor($attribute));
        }
    }
public function deleted ( $ model ) { $ translationRepository = \ App :: make ( TranslationRepository :: class ) ; foreach ( $ model -> translatableAttributes ( ) as $ attribute ) { $ translationRepository -> deleteByCode ( $ model -> translationCodeFor ( $ attribute ) ) ; } }
Delete translations when model is deleted.

@param  Model $model
@return void
Delete translations when model is deleted .