Aero\Catalog\Traits\Taggable

This trait can be added to a model class. The trait adds the ability to add tags to the model. The trait adds the following methods:

 

tag Method

This method accepts a Aero\Catalog\Models\Tag and will attach the tag to the model without detaching any other tags.

 

tags Method

This method defines the Eloquent relationship with Aero\Catalog\Models\Tag.

 

untag Method

This method accepts a Aero\Catalog\Models\Tag and will detach the tag from the model without detaching any other tags.

Articles in this section

Was this article helpful?
0 out of 0 found this helpful