Skip to content

emtiazzahid/userlike-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

userlike for Laravel

License Latest Version Total Downloads

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

  1. composer require emtiazzahid/userlike-laravel
  2. php artisan vendor:publish --provider="EmtiazZahid\UserLike\UserLikeServiceProvider"
  3. 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.