How to use SEO Field package?

I'm trying to use the SEO Field package, but when saving a record I get the error "Call to undefined relationship [seo_model] on model". Maybe I'm doing something wrong, but as I understand it, it saves the entered data via relationship.
Solution:
It does, and you haven't added the seo_model relationship to the model. I presumre you are using: https://filamentphp.com/plugins/34ml-seo-field If so, it uses...
Filament
SEO Field by 34ML - Filament
A plugin designed to manage seo data in different languages.
GitHub
GitHub - 34ML/laravel-seo
Contribute to 34ML/laravel-seo development by creating an account on GitHub.
Jump to solution
1 Reply
Solution
toeknee
toeknee9mo ago
It does, and you haven't added the seo_model relationship to the model. I presumre you are using: https://filamentphp.com/plugins/34ml-seo-field If so, it uses https://github.com/34ML/laravel-seo which means as per those docs, your model needs the trait: use SeoTrait;
Filament
SEO Field by 34ML - Filament
A plugin designed to manage seo data in different languages.
GitHub
GitHub - 34ML/laravel-seo
Contribute to 34ML/laravel-seo development by creating an account on GitHub.
Want results from more Discord servers?
Add your server