Chatify
Search…
Configurations
You can find package's configuration file at config/chatify.php in your application, and will find the following properties that you can modify inside it:

Display Name

This value is the name for the messenger displayed in the UI
1
'name' => env('CHATIFY_NAME', 'Chatify Messenger'),
Copied!

Storage Disk

The disk on which to store uploaded files and derived images by default. More details
1
'storage_disk_name' => env('CHATIFY_STORAGE_DISK', 'public'),
Copied!

Routes' Configurations

This value is package's routes' configurations
1
'routes' => [
2
'prefix' => env('CHATIFY_ROUTES_PREFIX', 'chatify'),
3
'middleware' => env('CHATIFY_ROUTES_MIDDLEWARE', ['web','auth']),
4
'namespace' => env('CHATIFY_ROUTES_NAMESPACE', 'Chatify\Http\Controllers'),
5
],
Copied!
  • prefix is the prefix of the routes in this package, so you can access the messenger from this value by going to /chatify.
  • middleware is the middleware array applied on the routes of this package.
  • namespace is the routes' controllers namespace.

API Routes'

1
'api_routes' => [
2
'prefix' => env('CHATIFY_API_ROUTES_PREFIX', 'chatify'),
3
'middleware' => env('CHATIFY_API_ROUTES_MIDDLEWARE', ['api']),
4
'namespace' => env('CHATIFY_API_ROUTES_NAMESPACE', 'Chatify\Http\Controllers\Api'),
5
],
Copied!

Pusher configurations

From here you can change pusher's configurations,
1
'pusher' => [
2
'key' => env('PUSHER_APP_KEY'),
3
'secret' => env('PUSHER_APP_SECRET'),
4
'app_id' => env('PUSHER_APP_ID'),
5
'options' => (array) [
6
'cluster' => env('PUSHER_APP_CLUSTER'),
7
'useTLS' => env('PUSHER_APP_USETLS'),
8
],
9
],
Copied!

User Avatar

This is user's avatar configurations
1
'user_avatar' => [
2
'folder' => 'users-avatar',
3
'default' => 'avatar.png',
4
],
Copied!
  • folder is the default folder name located in the storage to store users' avatars in.
  • default is the default user avatar image name, before uploading a new one.

Gravatar

In this version (v1.4.x +) we add support for Gravatar, so now you can use he default user avatar which is by default, or enable Gravatar to use it over the default
1
'gravatar' => [
2
'enabled' => true,
3
'image_size' => 200,
4
'imageset' => 'identicon'
5
],
Copied!
  • enabled set to true if you want to enable Gravatar over the default user avatar.
  • image_size the size of user avatar generated from Gravatar.
  • imageset Default imageset to use from the options bellow:
    • 404
    • mp
    • identicon (default)
    • monsterid
    • wavatar

Attachments

This is attachments configurations
1
'attachments' => [
2
'folder' => 'attachments',
3
'download_route_name' => 'attachments.download',
4
'allowed_images' => (array) ['png','jpg','jpeg','gif'],
5
'allowed_files' => (array) ['zip','rar','txt'],
6
'max_upload_size' => 150, // MB
7
],
Copied!
  • folder is the default folder name located in the storage to store attachments in.
  • download_route_name is name of the route to download the attachments.
  • allowed_images is the default allowed images to be uploaded.
  • allowed_files is the default allowed files to be uploaded.
  • `max_upload_size` is the max file size allowed to be uploaded in the backend (e.g. message attachment, user avatar..).

Messenger Colors

1
/*
2
|-------------------------------------
3
| Messenger's colors
4
|-------------------------------------
5
*/
6
'colors' => (array) [
7
'#2180f3',
8
'#2196F3',
9
'#00BCD4',
10
'#3F51B5',
11
'#673AB7',
12
'#4CAF50',
13
'#FFC107',
14
'#FF9800',
15
'#ff2522',
16
'#9C27B0',
17
],
Copied!
From the colors property you can set messenger's colors that users can change from the settings of their profile.
By default, there are 10 default colors as above.