roundly-consulting/translatable-for-laravel
A Laravel package that brings locale-aware translations to Eloquent models, letting you store and retrieve attribute values per language with fallback support. It simplifies building multilingual applications while staying close to Laravel conventions and reducing boilerplate.
extra.phpstan.includes, auto-loaded by phpstan/extension-installer), which is the kind of polish you only get from a package that is being used in real CI pipelines.$table->translatable(string $name): ColumnDefinition is now formally typed and analyzable, schema design and migration authoring can start in sprint 1 without waiting for a "translation architecture" spike. That de-risks committing to a locale rollout.phpstan/larastan at level 5+ can run in package-development contexts (Testbench), in apps using dont-discover, and where providers are registered by hand. Product decision: adopt a "static analysis must cover migrations and schema macros" gate rather than excluding database/migrations from analysis — a common shortcut that hides real defects.translatable() column macro rather than hand-rolled JSON columns plus accessors.vendor/roundly-consulting/translatable-for-laravel/extension.neon if you don't use phpstan/extension-installer.dont-discover — this is precisely the gap 1.1.2 closes, and prior to it those environments silently degraded your analysis coverage.For executives: This is a small, focused patch (1.1.2) to an already-adopted-pattern library that manages translated content in the database. It contains no breaking changes and no new features — it fixes developer tooling so our automated code-quality checks can see the package's database schema helper. Net effect: fewer false alarms in CI, faster onboarding for engineers, and continued low cost of ownership. It supports our localization roadmap with no additional build investment.
For engineering: 1.1.2 adds a bundled PHPStan extension so Larastan understands the $table->translatable() schema macro even when the service provider isn't booted during analysis — Testbench-based package development, dont-discover apps, and manually registered providers. The extension is loaded automatically by phpstan/extension-installer through extra.phpstan.includes; without the installer, add vendor/roundly-consulting/translatable-for-laravel/extension.neon to your config. Action items: upgrade to 1.1.2, and if you previously excluded database/migrations from static analysis to work around the undefined-method error, re-include migrations and remove the exclusion, since that workaround was masking other potential issues. No application code changes required.
How can I help you explore Laravel packages today?