app/Models/Traits/Viewable.php
/**
     * Boot the soft taggable trait for a model.
     *
     * @return void
     */
Boot the soft taggable trait for a model.
@return void
Boot the soft taggable trait for a model . @return void
public static function bootViewable()
    {
        if (static::$removeViewsOnDelete) {
            static::deleting(function ($model) {
                $model->removeViews();
            });
        }
    }
public static function bootViewable ( ) { if ( static :: $ removeViewsOnDelete ) { static :: deleting ( function ( $ model ) { $ model -> removeViews ( ) ; } ) ; } }
Boot the soft taggable trait for a model.
Boot the soft taggable trait for a model .