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

Update database only after confirmation? #20

Open LonnyX opened 7 years ago

LonnyX commented 7 years ago

I was thinking about writing a package like this one but with one additional feature : update the model table only when the changes are confirmed.

Problem

Imagine a blog where members can write articles, after the article is confirmed, it will be shown on the homepage. But what if this member want to edit this article? He update it and wait for the confirmation before the article will be shown on the homepage again (STRICT MODE).

Solution

In order to avoid this "delay", when the article is updated by the member, into the database it shouldn't be modified before the post is confirmed. Instead, a new table should save the updated object and wait for confirmation.

Hope you understood me.

hootlex commented 7 years ago

Hello @LonnyX, Apologies for the delay. I like your suggestion. Would you be interested in opening a pr?