# Upgrading Chatify

When upgrading to a new version of Chatify, it's important that you carefully review [the upgrade guide](https://github.com/munafio/chatify/blob/master/UPGRADE.md).

In addition, when upgrading to any new Chatify version, you should re-publish Chatify's assets:

```
php artisan chatify:publish
```

To keep the assets **up-to-date** and avoid issues in future updates, you may add the `chatify:publish` command to the `post-update-cmd` scripts in your application's `composer.json` file:

{% code title="composer.json" %}

```javascript
{
    "scripts": {
        "post-update-cmd": [
            "@php artisan chatify:publish --ansi"
        ]
    }
}
```

{% endcode %}
