Nova Page uses templates on top of the underlying Page model. Because the SEO data needs to be saved against a relationship of this underlying model, I've added a check in the resolve and fill methods which will update the resource to that of the underlying model rather than the template.
Note that instanceof does not throw errors if the class it's checking against doesn't exist, so this shouldn't cause any problems for people using this package without Nova Page installed.
I'm trying to use this package with Nova Page (https://github.com/whitecube/nova-page).
Nova Page uses templates on top of the underlying Page model. Because the SEO data needs to be saved against a relationship of this underlying model, I've added a check in the resolve and fill methods which will update the resource to that of the underlying model rather than the template.
Note that
instanceof
does not throw errors if the class it's checking against doesn't exist, so this shouldn't cause any problems for people using this package without Nova Page installed.