original_string: public static function bootTaggable()
      {
          static::created(function (Model $taggableModel) {
              if ($taggableModel->queuedTags) {
                  $taggableModel->tag($taggableModel->queuedTags);
  
                  $taggableModel->queuedTags = [];
              }
          });
  
          static::deleted(function (Model $taggableModel) {
              $taggableModel->tags()->detach();
          });
      }
code: public static function bootTaggable()
      {
          static::created(function (Model $taggableModel) {
              if ($taggableModel->queuedTags) {
                  $taggableModel->tag($taggableModel->queuedTags);
  
                  $taggableModel->queuedTags = [];
              }
          });
  
          static::deleted(function (Model $taggableModel) {
              $taggableModel->tags()->detach();
          });
      }
code_tokens: public static function bootTaggable ( ) { static :: created ( function ( Model $ taggableModel ) { if ( $ taggableModel -> queuedTags ) { $ taggableModel -> tag ( $ taggableModel -> queuedTags ) ; $ taggableModel -> queuedTags = [ ] ; } } ) ; static :: deleted ( function ( Model $ taggableModel ) { $ taggableModel -> tags ( ) -> detach ( ) ; } ) ; }
docstring: Boot the taggable trait for a model.
  
  @return void
docstring_tokens: Boot the taggable trait for a model .