Home

1 minute read

Laravel Kustomer Package

Tony Lea

Laravel Kustomer Package

Laravel Kustomer is a simple Laravel package that adds a customer feedback popup to your site. This package was created by Clément Rigo, you can checkout the repo here: https://github.com/mydnic/laravel-kustomer

Take a look at the demo image below:

Installation is very easy. You can run the following composer command to install the package:

composer require mydnic/laravel-kustomer

Then you'll need to publish the assets and run the migrations:

php artisan kustomer:publish

php artisan migrate

Finally, add the CSS and the JS in the header and include the component in your HTML:

<html>
    <head>
        <script src="{{ asset('vendor/kustomer/js/kustomer.js') }}" defer></script>
        <link href="{{ asset('vendor/kustomer/css/kustomer.css') }}" rel="stylesheet" type="text/css">
    </head>
    <body>
        <div id="kustomer">
            <kustomer :params="{{ json_encode(config('kustomer')) }}"></kustomer>
        </div>
    </body>
</html>

And you're good to go!

Checkout the repo to learn more: https://github.com/mydnic/laravel-kustomer