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!

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
'encryption_master_key_base64' => env('PUSHER_APP_ENCRYPTION_KEY'),
9
],
10
],
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, before uploading a new one.

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
],
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.
Last modified 2d ago