hootlex / laravel-moderation

A simple Content Moderation System for Laravel 5.* that allows you to Approve or Reject resources like posts, comments, users, etc.
MIT License
526 stars 68 forks source link

Adding events #13

Closed lukasoppermann closed 4 years ago

lukasoppermann commented 8 years ago

Thinking about status, etc. it might be a good idea to add events for when a status changes.

Think about an author getting a notification that his article is back from a review. Or maybe it is published now, etc.

Using the laravel event system other parts of the app can easily subscribe to the statusHasChanged event and act on it, e.g. send out a notification, log something to a database, add something to a queue, ...

stephane-monnot commented 8 years ago

@lukasoppermann Very good idea !

hootlex commented 8 years ago

@lukasoppermann Yeah, I like this idea. I will start working on the suggested enhancements next week, but I don't promise anything. :smile: