cactus-galaxy/filament-astrotomic
filament/filament and astrotomic/laravel-translatable as dependencies. No forced migrations or schema changes.fields(), tables()), enabling gradual adoption.fallbackLocales) must be pre-configured to avoid runtime errors.json columns) could impact query performance if not optimized (e.g., indexing, caching).translations JSON?astrotomic/laravel-translatable (if not already present).composer require cactus-galaxy/filament-astrotomic
config/filament.php to include the plugin.use CactusGalaxy\FilamentAstrotomic\FilamentAstrotomicPlugin;
FilamentAstrotomicPlugin::make()
->locales(['en', 'es', 'fr'])
->defaultLocale('en')
->registerResources();
use CactusGalaxy\FilamentAstrotomic\Fields\TranslatableField;
public static function form(Form $form): Form
{
return $form->schema([
TranslatableField::make('title')
->locales(['en', 'es']),
]);
}
Page model).cactus-galaxy/filament-astrotomic, filament/filament, and astrotomic/laravel-translatable for breaking changes.debug mode to inspect field rendering issues.hasTranslations() is called on models.app()->getLocale() vs. TranslatableField locales.locale and translatable_id.remember() in models).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Package abandoned | No updates/bug fixes | Fork or switch to Spatie’s plugin. |
| Filament major version breakage | Plugin stops working | Test against Filament’s beta releases early. |
| Translation data corruption | Inconsistent UI/localization | Backup DB before upgrades; use transactions. |
| Locale conflicts | Fallback fails, missing content | Validate locales in config; add validation. |
| Performance degradation | Slow Filament UI | Optimize queries; cache translations. |
Translatable trait.How can I help you explore Laravel packages today?