laravel-moderation
laravel-moderation copied to clipboard
Update database only after confirmation?
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.
Hello @LonnyX, Apologies for the delay. I like your suggestion. Would you be interested in opening a pr?