> For the complete documentation index, see [llms.txt](https://ibnnajjaar.gitbook.io/graphify/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ibnnajjaar.gitbook.io/graphify/advanced-usage/auto-triggering-og-image-update.md).

# 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.

```php
protected array $graphify_fields = [
    'title',
];
```

This will auto update the OG image  when the title of the model is updated.
