tonysm/rich-text-laravel
Rich Text Laravel brings Action Text-style rich content to Laravel. It integrates the Trix editor, stores HTML with attachments, and provides helpers for sanitizing, rendering, and managing rich text fields on Eloquent models.
rich_texts table, attachments as first-class records, sanitized HTML output. Adopting it is a deliberate choice to buy the commodity layer and own only the product-specific parts (editor UX, permissions, workflow).Adopt when:
Look elsewhere when:
For executives: We can ship rich text authoring — formatted content, inline images, file attachments — in days rather than a multi-sprint build, using a proven pattern ported from Rails. It's MIT-licensed, so there's no licensing cost or vendor lock-in, and it removes a recurring "we need rich text here too" tax from every future content feature. Principal risk is dependency maturity, which we mitigate by isolating it behind our own abstraction and budgeting a fork contingency.
For engineering: The package adds a HasRichText-style trait, stores content in a dedicated polymorphic rich_texts table, integrates the Trix editor, manages attachment uploads/rendering, and sanitizes HTML on output. It covers the ~80% case for content-bearing models and keeps migrations out of our domain tables. Known limits: Trix is not collaborative and content is HTML, not structured — so if either becomes a requirement we'll need an editor/storage swap. Recommended posture: adopt behind a thin internal interface, pin the version, and treat the package as replaceable infrastructure rather than a core dependency.
How can I help you explore Laravel packages today?