lemaur/eloquent-publishing
Add publishing support to Laravel Eloquent models with a simple trait. Manage publish dates, query scopes and helpers, plus custom migration blueprint methods to quickly add publishing columns and build publishable content workflows.
/posts?published=true).Adopt if:
onlyPublished(), latestPlanned()) across multiple models.Look elsewhere if:
For Executives: "This package streamlines content publishing with minimal dev effort. It adds a single trait to models, enabling scheduled releases, draft management, and filtered queries—reducing backend complexity while supporting features like time-sensitive campaigns or editorial workflows. MIT-licensed and actively maintained, it’s a low-risk way to standardize publishing logic across the app."
For Engineers:
*"Replace manual published_at timestamps and custom queries with a battle-tested trait. Key benefits:
published_at columns with $table->publishes().Post::onlyPublished()->latestPublished().published, unpublished, etc., for notifications or analytics.// Model
use Lemaur\Publishing\Database\Eloquent\Publishes;
class Post extends Model { use Publishes; }
// Migration
$table->publishes(); // Adds `published_at` column.
```*
*Tradeoff: Limited to Eloquent; not a full CMS, but solves 80% of publishing needs."*
How can I help you explore Laravel packages today?