Auto Triggering OG Image Update
There are times you need to update something that will directly effect the generated open graph image. For an example you have a post where you are adding the post title to the OG image. When the title gets updated, you will want the OG image to be updated as well. To automatically trigger the update of OG images on such occasions, you may add a property to your model as below.
protected array $graphify_fields = [
This will auto update the OG image when the title of the model is updated.
Last modified 3mo ago