emtiazzahid / userlike-laravel
A userlike chat widget for Laravel.
v0.0.1
2021-10-01 16:28 UTC
Requires
- php: >=7.0.0
- illuminate/support: >=5.5.0
This package is auto-updated.
Last update: 2024-10-29 06:19:14 UTC
README
userlike has a lot of integrations, but not for Laravel. This is an userlike chat widget for Laravel.
Minimum Requirements
- PHP 7.0+
- Laravel 5.5+
Installation
composer require emtiazzahid/userlike-laravel
php artisan vendor:publish --provider="EmtiazZahid\UserLike\UserLikeServiceProvider"
- Add your chat link to your
.env
file:
USERLIKE_KEY="**84ea169c8b4049a*******ec2f982d58fca8b147184ea6a6d356154036****"
####To get your widget key:
- Visit: your dashboard
- Select your website
- Select Install from right side
- Select Credentials for Applications
Usage
Just echo the widget code in your app layout blade inside the body tag:
... {{ \EmtiazZahid\UserLike\UserLike::widgetCode() }} </body> </html>
Or, if you don't want to use a config file, you can set your link directly like this:
... {{ \EmtiazZahid\UserLike\UserLike::widgetCode('your_widget_key') }} </body> </html>
License
userlike-laravel is released under the MIT license. See LICENSE for details.