src/Taggable.php
public static function bootTaggable()
    {
        if(static::untagOnDelete()) {
            static::deleting(function($model) {
                $model->untag();
            });
        }

        static::saved(function ($model) {
            $model->autoTagPostSave();
        });

        static::$taggingUtility = app(TaggingUtility::class);
    }
public static function bootTaggable()
    {
        if(static::untagOnDelete()) {
            static::deleting(function($model) {
                $model->untag();
            });
        }

        static::saved(function ($model) {
            $model->autoTagPostSave();
        });

        static::$taggingUtility = app(TaggingUtility::class);
    }
public static function bootTaggable ( ) { if ( static :: untagOnDelete ( ) ) { static :: deleting ( function ( $ model ) { $ model -> untag ( ) ; } ) ; } static :: saved ( function ( $ model ) { $ model -> autoTagPostSave ( ) ; } ) ; static :: $ taggingUtility = app ( TaggingUtility :: class ) ; }
Boot the soft taggable trait for a model.

@return void
Boot the soft taggable trait for a model .