Skip to main content

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\Tagand 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\Tagand will detach the tag from the model without detaching any other tags.