app/Models/Traits/Commentable.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 bootCommentable()
    {
        if (static::$removeCommentsOnDelete) {
            static::deleting(function ($model) {
                $model->removeComments();
            });
        }
    }
public static function bootCommentable ( ) { if ( static :: $ removeCommentsOnDelete ) { static :: deleting ( function ( $ model ) { $ model -> removeComments ( ) ; } ) ; } }
Boot the soft taggable trait for a model.
Boot the soft taggable trait for a model .