Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple Published Moderation #4

Open
interludic opened this issue Aug 14, 2017 · 2 comments
Open

Simple Published Moderation #4

interludic opened this issue Aug 14, 2017 · 2 comments

Comments

@interludic
Copy link

Could you please add a status(string) column to the ratings table, we can fill it with pending, approved moderation

Open to alternative, would just like to filter out any spam or abuse before it gets published.

@codebyray
Copy link
Contributor

codebyray commented Oct 26, 2018

You could add a column such as 'approved' and make it true or false. Have all ratings default to false and not show if approved is false. Would be a simple addition to make.

I have that in a version I forked off this main version. It does have a bunch of other options for my project. However, I can possibly put it together in this repo and put in a pull request when I have time.

@Trexology
Copy link
Owner

Actually... after publishing the migration file to your local project, you could add any additional column to your own migration file.

In order to update the rating with the new 'status' column. Just have to pass that additional column into the add or update method

$rating = $post->updateRating(1, [
'title' => 'new title',
'body' => 'new body',
'rating' => 3,
'status' => 'active', <--- add this
]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants