Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Laravel
  3. Laravel Moderation

Laravel Moderation

MITPHPv1.1.0

A Laravel package for moderating content with approval, rejection, and pending states to keep applications clean.

GitHubGitHub
530 stars68 forks0 contributors

What is Laravel Moderation?

Laravel Moderation is a Laravel package that provides a content moderation system for Eloquent models. It allows developers to implement approval workflows where resources like posts or comments can be marked as pending, approved, rejected, or postponed, ensuring only moderated content appears in queries. It solves the problem of managing user-generated content by automating visibility based on moderation status.

Target Audience

Laravel developers building applications with user-generated content, such as forums, blogs, or social platforms, who need to implement moderation features. It's also suitable for administrators who require tools to review and control content before it goes live.

Value Proposition

Developers choose Laravel Moderation because it integrates seamlessly with Laravel's Eloquent ORM, uses a simple trait-based approach, and provides built-in query scopes for filtering moderated content. It eliminates the need to build custom moderation logic from scratch, saving time while ensuring robust content control.

Overview

A simple Content Moderation System for Laravel 5.* that allows you to Approve or Reject resources like posts, comments, users, etc.

Use Cases

Best For

  • Implementing approval workflows for user-generated posts or comments
  • Building Laravel admin panels with content review features
  • Filtering spam or inappropriate content in community platforms
  • Managing content visibility in multi-user blogging systems
  • Adding moderation to Eloquent models without complex database changes
  • Creating staged publishing systems where content requires admin approval

Not Ideal For

  • Applications requiring real-time moderation with live updates or WebSocket integration
  • Complex approval workflows with multi-stage reviews or custom business logic
  • Projects using Laravel Nova or similar admin panels that offer built-in moderation tools
  • High-traffic sites needing optimized database indexing for moderation status queries

Pros & Cons

Pros

Seamless Eloquent Integration

Uses a simple trait-based approach, as shown in the model setup, allowing quick addition to any Eloquent model without disrupting existing code.

Automatic Query Filtering

By default, queries only return approved resources, hiding unmoderated content automatically, which simplifies frontend implementation.

Flexible Status Scopes

Provides built-in scopes like pending() and withRejected() for easy access to different moderation states, reducing custom query logic.

Configurable Database Columns

Allows customization of column names for status, timestamp, and moderator ID through config or model constants, offering flexibility for existing schemas.

Cons

Limited Workflow Features

Only supports basic statuses (approve/reject/postpone) without built-in support for moderation comments, reasons, or audit trails, which may require additional development.

No Admin Interface

The package focuses solely on backend functionality, forcing developers to build their own UI for moderators to review and manage content.

Database Schema Intrusiveness

Requires adding columns to each moderated model's table, which can be cumbersome for large, existing applications and may involve complex migrations.

Frequently Asked Questions

Quick Stats

Stars530
Forks68
Contributors0
Open Issues16
Last commit4 years ago
CreatedSince 2016

Tags

#eloquent#laravel#admin-tools#user-generated-content#php#spam-prevention#content-moderation

Built With

C
Composer
P
PHP
L
Laravel

Included in

Laravel13.0k
Auto-fetched 13 hours ago

Related Projects

LiveWireLiveWire

A full-stack framework for Laravel that takes the pain out of building dynamic UIs.

Stars23,516
Forks1,735
Last commit3 days ago
Debug BarDebug Bar

Debugbar for Laravel (Integrates PHP Debug Bar)

Stars19,214
Forks1,604
Last commit10 days ago
IDE HelperIDE Helper

IDE Helper for Laravel

Stars14,903
Forks1,189
Last commit11 days ago
Intervention ImageIntervention Image

PHP Image Processing

Stars14,337
Forks1,490
Last commit1 day ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub