webard/filament-translatable
HasTranslations) and resource extensions, minimizing direct model/database changes. Existing Filament resources can be retrofitted with minimal refactoring.TranslatableSaved, TranslatableDeleted) and configurable fields (e.g., TranslationField), allowing for tailored validation, formatting, or workflows.lang/ files) or third-party packages like spatie/laravel-translation-loader.spatie/laravel-translatable) be migrated to this package with minimal downtime?app/lang/, trans() helper).filament-translatable equivalents.Post, Product) that need translation support.HasTranslations trait to models and configure TranslationField in Filament resources.json column → new schema).JSON_EXTRACT).filament-spatie-media-library) by namespacing or prioritizing load order.config/app.php, locale middleware).composer require webard/filament-translatable.php artisan vendor:publish --provider="Webard\FilamentTranslatable\FilamentTranslatableServiceProvider".HasTranslations trait to Eloquent models.translatable array in model (e.g., ['title', 'description']).TranslationField in tables/forms.use Webard\FilamentTranslatable\Fields\TranslationField;
TranslationField::make('title')
->availableLocales(['en', 'es'])
->required();
translated() method).dd($model->getTranslations()).availableLocales and locale middleware.EXPLAIN on translation joins).How can I help you explore Laravel packages today?