Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 451 Bytes

events.md

File metadata and controls

24 lines (18 loc) · 451 Bytes

Events

The Taggable trait will fire off two events.

Emresari\Tagging\Events\TagAdded;

Emresari\Tagging\Events\TagRemoved;

You can add listeners and track these events.

\Event::listen(TagAdded::class, function(TagAdded $event){
	\Log::debug($event->model->title . ' was tagged');
});
\Event::listen(TagRemoved::class, function(TagRemoved $event){
	\Log::debug($event->tagSlug . ' was removed');
});