Download the PHP package tealorca/laravel-freshchat without Composer
On this page you can find all versions of the php package tealorca/laravel-freshchat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tealorca/laravel-freshchat
More information about tealorca/laravel-freshchat
Files in tealorca/laravel-freshchat
Package laravel-freshchat
Short Description Freshchat Web Widget for Laravel
License MIT
Homepage https://github.com/tealorca/laravel-freshchat
Informations about the package laravel-freshchat
Freshchat Web Widget for Laravel
Installation
You can install the package via composer:
The package will automatically register a service provider.
Next, Include the chat widget into blade layout code by adding Blade directive @laravelFreshchat
before the end of the body tag.
Next, you need to publish the freshchat configuration file:
This is the default content of the config file that will be published as config/laravel-freshchat.php
:
Once you added FRESHCHAT_TOKEN
and FRESHCHAT_HOST
values to your .env
file you can see the widget on your webpage.
The displayed widget will be treated as a Anonymous User window.
You can see the Freshchat's Web SDK Docs for more details.
Configure Logged in User
Add the ChatUser
Trait to your User Model
To treat the current authenticated user as a Freshchat user, simply add the TealOrca\LaravelFreshchat\Traits\ChatUser
trait to the user authentication model.
Add the Restore Id column to your user table
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Daniel Felix
- All Contributors
License
The MIT License (MIT). Please see License File for more information.