laravel-moderation icon indicating copy to clipboard operation
laravel-moderation copied to clipboard

Update database only after confirmation?

Open LonnyX opened this issue 7 years ago • 1 comments

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.

LonnyX avatar Mar 03 '17 20:03 LonnyX

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

hootlex avatar May 29 '17 18:05 hootlex