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:Jump to 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...
GitHub
GitHub - 34ML/laravel-seo
Contribute to 34ML/laravel-seo development by creating an account on GitHub.
1 Reply
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
https://github.com/34ML/laravel-seo
which means as per those docs, your model needs the trait:
use SeoTrait;
GitHub
GitHub - 34ML/laravel-seo
Contribute to 34ML/laravel-seo development by creating an account on GitHub.