public static function bootTranslatable(): void
    {
        static::created(function (Model $model) {
            $model->translations()->saveMany($model->translationCache);
        });

        static::updating(function (Model $model) {
            $model->translations()->saveMany($model->translationCache);
        });
    }
public static function bootTranslatable(): void
    {
        static::created(function (Model $model) {
            $model->translations()->saveMany($model->translationCache);
        });

        static::updating(function (Model $model) {
            $model->translations()->saveMany($model->translationCache);
        });
    }
public static function bootTranslatable ( ) : void { static :: created ( function ( Model $ model ) { $ model -> translations ( ) -> saveMany ( $ model -> translationCache ) ; } ) ; static :: updating ( function ( Model $ model ) { $ model -> translations ( ) -> saveMany ( $ model -> translationCache ) ; } ) ; }
Boot the translatable trait.

@return void
Boot the translatable trait .