F
Filament13mo ago
rabol

does filament-spatie-translatable work when the resource is generated with -S option

For a FAQ 'module' I'm trying to use the https://filamentphp.com/plugins/filament-spatie-translatable plugin, I have added the plugin to the panel. I then generated the resource
php artisan make:filament-resource FaqCategory -G -S
php artisan make:filament-resource FaqCategory -G -S
I have added the
use Translatable;
use Translatable;
to the resource but the create and editdoes not have controls for the translations
Filament
Spatie Translatable by Filament - Filament
Filament support for Spatie's Laravel Translatable package.
3 Replies
rabol
rabolOP13mo ago
I tried to create the resource without the -S but now I get this error:
App\Filament\Resources\FaqCategoryResource::getDefaultTranslatableLocale does not exist.
App\Filament\Resources\FaqCategoryResource::getDefaultTranslatableLocale does not exist.
even if I have this:
->plugins([
FilamentLogviewerPlugin::make(),
SpatieLaravelTranslatablePlugin::make()
->defaultLocales(['ca', 'da', 'de', 'en', 'es', 'fr', 'lt']),
])
->plugins([
FilamentLogviewerPlugin::make(),
SpatieLaravelTranslatablePlugin::make()
->defaultLocales(['ca', 'da', 'de', 'en', 'es', 'fr', 'lt']),
])
on my panel I missed some from the doc, but... Creating new does not work
rabol
rabolOP13mo ago
No description
rabol
rabolOP13mo ago
I started over and double checked every thing and now it's working, sorry
Want results from more Discord servers?
Add your server