How can I use Filament Spatie Translatable with SEO Filament ?

Hi, I’m trying to implement Spatie Translatable with an SEO relationship, but when I change the locale, the SEO fields do not update. I created a new SEO model that implements the HasTranslations trait and defines a translatable array. I also set up my resource pages, but… nothing =/ Everything works perfectly with the record’s main data, but not with this SEO relationship. Is there a way to make this type of relationship translatable? Thanks a lot!
1 Reply
Lara Zeus
Lara Zeus2w ago
are you using it with SEO::make()? I dont think it will works here is a demo code on how to add SEO to any resource, just normal schema https://github.com/lara-zeus/translatable-demo/blob/a053d0e967691cd4c0990d9288c5aa88b9bf8442/app/Providers/OverridesProvider.php#L58 and its working with spatie translatable also you can switch to use my fork: https://github.com/lara-zeus/translatable

Did you find this page helpful?