Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Translatable Laravel Package

spatie/laravel-translatable

Add multilingual fields to Eloquent models using a simple HasTranslations trait. Store translations as JSON on the model (no extra tables). Set/get translations per locale, switch app locale, fetch all translations, and even translate nested JSON keys via -> notation.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

The package integrates seamlessly with Laravel's Eloquent ORM using a trait-based approach, avoiding separate translation tables and leveraging JSON columns for storage. This simplifies schema design but introduces database-specific query considerations (e.g., MySQL 5.7+/MariaDB 10.2.3+ required for optimal JSON querying). Integration feasibility is high due to minimal setup steps and comprehensive documentation, though legacy database systems may require schema modifications. Key technical risks include JSON query performance degradation at scale, potential data corruption if JSON structures are malformed, and dependency on Laravel's locale management for automatic translation retrieval. Critical unanswered questions: How does the package handle JSON column indexing for

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport