#Banckle.Chat for Laravel
This is a Laravel Package to use Banckle.Chat SDK for PHP in Laravel applications quickly and easily.
Add the following lines to your composer.json file.
Run from terminal.
Add package to the list of providers. In config/app.php, add the following line to the providers array.
Publish config files from the terminal.
php artisan config:publish banckle/chat-laravel
Edit the new config file in the config/packages/banckle/chat-laravel and enter your Banckle API Key, email & password.
'banckleAccountUri' => 'https://apps.banckle.com/api/v2',
'banckleChatUri' => 'https://chat.banckle.com/v3',
'apiKey' => '',
'email' => '',
'password' => ''
In config/packages/banckle, rename chat-laravel to chat
Anywhere in your application when you need to access class, just do:
// To Generate token
This will return you object of class and you can access properties and methods of class.