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.
Adopt if:
Look elsewhere if:
SoftDeletes instead).*"This update to the publishing package is a critical opportunity to modernize our Laravel stack. By adopting it, we’ll:
Example: If we’re planning to launch a new feature announcement on [date], this package ensures we can schedule it without manual database updates—while also pushing us toward a more secure, scalable stack. The upgrade is low-risk: it’s a one-time migration to L11+, with clear ROI in developer productivity and security."
ROI:
*"This 4.0.0 release drops Laravel 10/PHP 8.1 support, so we have two options:
Upgrade to L11+/PHP 8.2+ and adopt the package: This is the recommended path. The package now includes:
published_at columns (e.g., $table->publishes()).onlyPublished(), latestPlanned()) and events (published, unpublished) for workflows.Stay on 3.x: Not viable long-term due to EOL Laravel/PHP risks and lack of updates.
Proposal: Let’s use this as a blocker for our L11+ upgrade. We’ll:
Trade-offs:
Demo: I’ll show how the package integrates with our models and how the L11+ upgrade enables new features like [specific use case]."
How can I help you explore Laravel packages today?