Please note that this is just the laravel handler for the logs, you will have to execute a client side request to the route provided from this package to write the logs
composer require yogesmhrj\laravel-jslogs
Once the composer has completed the package download, head on to config\app.php
and add the following line to the providers
array.
Yogesmhrj\LaravelJslogs\Providers\JsLogServiceProvider::class
Once the setup is complete, you can call ajax with POST method to the endpoint hop/store/js/logs
to store your logs.