> For the complete documentation index, see [llms.txt](https://chatify.munafio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chatify.munafio.com/v1.2.x/customizations.md).

# Customizations

This package allows you to customize almost everything, the controllers, models, views, assets, configurations ... like so.

So you have the full control on the package to do what ever you want, all you need is to publish the required asset  (e.g. controllers) to start your modifications on it.

## Package's assets

* `config`
* `views`
* `assets` (js, css, imgs)
* `models`
* `migrations`
* `controllers`

{% hint style="info" %}
The following assets already been published during the installation process:

`config`, `views`, `assets`, `models`, `migrations`

only the `controllers` asset is not published until you do.
{% endhint %}

## Publishing the assets

When you need to publish an asset, all you need is to run the following command :

```
php artisan vendor:publish --tag=chatify-<asset-name>
```

{% hint style="info" %}
Change`<asset-name>` with the required asset name (e.g. config) to be like `chatify-config`
{% endhint %}

## Controllers

You may want to do some modifications on the controllers of this package, so you need to follow the steps below:

1. Publish `controllers` asset

```
php artisan vendor:publish --tag=chatify-controllers
```

2\. Go to `config/chatify.php` and from `routes` properties, change `namespace` to `App\Http\Controllers\vendor\Chatify` to be like the following:

{% code title="config/chatify.php" %}

```php
...
'namespace' => env('CHATIFY_ROUTES_NAMESPACE', 'App\Http\Controllers\vendor\Chatify'),
```

{% endcode %}

3\. Go to `app/Http/Controllers/vendor/Chatify` and open `MessagesController.php` with your code editor .. then change the namespace to the same namespace specified in the step 2 above.

Thats all you need to do.

Now, You can work with package's controller and start your modifications.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://chatify.munafio.com/v1.2.x/customizations.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
