• Laravel
  • PHP
  • Laravel Moderation – Approve or reject resources like posts, comments, users, …

    Possible Use Case

    1. User creates a resource (a post, a comment or any Eloquent Model).

    2. The resource is pending and invisible in website (ex. Post::all() returns only approved posts).

    3. Moderator decides if the resource will be approved, rejected or postponed.

    4. Approved: Resource is now public and queryable.

    5. Rejected: Resource will be excluded from all queries. Rejected resources will be returned only if you scope a query to include them. (scope: withRejected)

    6. Postponed: Resource will be excluded from all queries until Moderator decides to approve it.

    7. You application is clean.

    Github: https://github.com/hootlex/laravel-moderation

    Để lại một bình luận

    Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

    1 mins